SqlHelper..::..ExecuteXmlReaderTypedParamsAsync Method (SqlConnection, String, DataRow)
Execute a stored procedure via a SqlCommand (that returns a resultset) against the specified SqlConnection
using the dataRow column values as the stored procedure's parameters 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.
Namespace:
CoreAssembly: Core (in Core.dll)
Syntax
public static Task<XmlReader> ExecuteXmlReaderTypedParamsAsync( SqlConnection connection, string spName, DataRow dataRow )
Parameters
- connection
- Type: SqlConnection
A valid SqlConnection object
- spName
- Type: String
The name of the stored procedure
- dataRow
- Type: DataRow
The dataRow used to hold the stored procedure's parameter values.