Last post Sep 02, 2005 04:26 AM by miaomiaoga
Sep 01, 2005 02:17 PM|miaomiaoga|LINK
Now I'm used MS Enterprise Library to insert data into DataGrid.
But an statement error in AddParameter in the following:
Database db = DatabaseFactory.CreateDatabase("Database Instance NorthWind");
string sqlCommand = "Select CustomerID, CompanyName, ContactName From Customers";
DBCommandWrapper dbCommandWrapper = db.GetSqlStringCommandWrapper(sqlCommand);
//dbCommandWrapper.AddParameter("@CustomerID","FRANK") ; <--Error
But how to used this method? seems many parameter should be insert into this. in this case, i want to search the datas where CustomerID="FRANK", and return it.
How to solve it?
Any suggestion are appreciated. Thanks.
Sep 02, 2005 04:26 AM|miaomiaoga|LINK