我TMD就特淡定一人,我就那么想吐槽这DLL呢
盼着到1 2014-06-11 10:09:35 GotDotNet.ApplicationBlocks.Data.dll
AdoHelper 是上边那个DLL的类
就这逼DLL,我就CTMNMLGB
public AdoHelper ah = null;
ah = AdoHelper.CreateHelper(assembly, type);
using (ds = ah.ExecuteDataset(ah.CreateCommand(cn, strSql, CommandType.Text)))
{
return ds.Tables[0];
}
参数我就不细写了,TMD我调试时候,总给我报缺失括号,我在控制台截取的strSql在oracle执行时一点问题都没有,由于语句比较长,我还就真信了,找两个小时,没找出原因,然后我就换了别的连接方法
顺带一提的是,CreateCommand()这个方法,在dll中没有任何说明,就TMD一个接口光秃秃的摆在那,想看看接口说明也看不了,根本不知道哪儿出的问题
OracleDataAdapter myda = new OracleDataAdapter();
myda.SelectCommand = new OracleCommand(strSql, cnn);
DataSet myds = new DataSet();
myda.Fill(myds);
换了个连接方式,一点问题都没有 所以这个GotDotNet.ApplicationBlocks.Data.dll 我劝各位千万别用这SB dll