类型:转载 责任编辑:asp.net 日期:2007/05/23
热门软件下载:
custDA.InsertCommand.Parameters.Add("@CustomerID","有问题的参数", 5, "CustomerID");
中,我知道参数OleDbType 的类型为 OleDbType.char 或是其它的,
但我所知的只是字符串 "OleDbType.char" ,如何才能把它转成类型OleDbType.char????
在线=.......
网友回答:
帮你顶
OleDbType 是Enum, 不是普通的类型。
OleDbType tp=(OleDbType)Enum.Parse(typeof(OleDbType),"Char",true);