Build command objects and query data from data sources
DbCommand
Requirements
How to create
Example
var nw = ConfigurationManager.ConnectionStrings["nw"];
var connection = new SqlConnection(nw.ConnectionString);
var cmd = connection.CreateCommand();
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "CustOrderHist";
//don't forget to close the connection!Methods
PreviousManage exceptions when selecting, modifying dataNextRetrieve data source by using the DataReader
Last updated