请问Enterprise Library如何执行带有参数的SQL语句(Generic Database)
试验了好半天也没有找到相应的方法
我的数据库是MS Access,没找到一个正确方法加参数
例如
Database db = DabaseFactory.CreateDatabase();
DbCommand cmd = db.GetSqlStringCommand("select * from products where productID = ?");
用Db.AddInParameter()这个函数加不进去参数,请各位老鸟帮帮忙
我的数据库是MS Access,没找到一个正确方法加参数
例如
Database db = DabaseFactory.CreateDatabase();
DbCommand cmd = db.GetSqlStringCommand("select * from products where productID = ?");
用Db.AddInParameter()这个函数加不进去参数,请各位老鸟帮帮忙

浙公网安备 33010602011771号