SqlHelper..::..ExecuteXmlReaderAsync Method (SqlConnection, CommandType, String)
Execute a SqlCommand (that returns a resultset and takes no parameters) against the provided SqlConnection.
Namespace:
CoreAssembly: Core (in Core.dll)
Syntax
public static Task<XmlReader> ExecuteXmlReaderAsync( SqlConnection connection, CommandType commandType, string commandText )
Parameters
- connection
- Type: SqlConnection
A valid SqlConnection
- commandType
- Type: CommandType
The CommandType (stored procedure, text, etc.)
- commandText
- Type: String
The stored procedure name or T-SQL command using "FOR XML AUTO"