Execute a stored procedure via a Command (that returns a resultset) against the specified Transaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order.
A DataReader containing the resultset generated by the command
This method does not close the transaction created. You must close the transaction when you have finished to work with the reader.
This method provides no access to output parameters or the stored procedure's return value parameter.
IDbTransaction transaction = null; SqlDataReader dr = (SqlDataReader)ExecuteReader(out transaction, "GetOrders", 24, 36); /* Do work */ dr.Close(); dr.Dispose(); transaction.Close();
GenericDataHelper Class | DotnetProject.Data Namespace | GenericDataHelper.ExecuteReaderTransactional Overload List