Execute a stored procedure via a Command (that returns a resultset) against a Connection 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.
An XmlReader containing the resultset generated by the command
This method does not close the connection created. You must close the connection when you have finished to work with the xmlReader.
This method provides no access to output parameters or the stored procedure's return value parameter.
IDbConnection connection = null; XmlReader r = ExecuteXmlReader(out connection, "GetOrders", 24, 36); /* Do work */ r.Close(); connection.Close();
GenericDataHelper Class | DotnetProject.Data Namespace | GenericDataHelper.ExecuteXmlReader Overload List