请问Enterprise Library如何执行带有参数的SQL语句(Generic Database)

试验了好半天也没有找到相应的方法

我的数据库是MS Access,没找到一个正确方法加参数

例如

Database db = DabaseFactory.CreateDatabase();
DbCommand cmd = db.GetSqlStringCommand("select * from products where productID = ?");
用Db.AddInParameter()这个函数加不进去参数,请各位老鸟帮帮忙

posted @ 2007-07-04 11:09  Vincent Yang  阅读(603)  评论(3)    收藏  举报