| SqlMapperExecuteReader Method (IDbConnection, CommandDefinition, CommandBehavior) | 
 
Namespace: DapperAssembly: VirtualRadar.Database (in VirtualRadar.Database.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static IDataReader ExecuteReader(
	this IDbConnection cnn,
	CommandDefinition command,
	CommandBehavior commandBehavior
)
<ExtensionAttribute>
Public Shared Function ExecuteReader ( 
	cnn As IDbConnection,
	command As CommandDefinition,
	commandBehavior As CommandBehavior
) As IDataReader
public:
[ExtensionAttribute]
static IDataReader^ ExecuteReader(
	IDbConnection^ cnn, 
	CommandDefinition command, 
	CommandBehavior commandBehavior
)
[<ExtensionAttribute>]
static member ExecuteReader : 
        cnn : IDbConnection * 
        command : CommandDefinition * 
        commandBehavior : CommandBehavior -> IDataReader 
Parameters
- cnn
 - Type: System.DataIDbConnection
 - command
 - Type: DapperCommandDefinition
 - commandBehavior
 - Type: System.DataCommandBehavior
 
Return Value
Type: 
IDataReaderAn 
IDataReader that can be used to iterate over the results of the SQL query.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type 
IDbConnection. When you use instance method syntax to call this method, omit the first parameter. For more information, see 
Extension Methods (Visual Basic) or 
Extension Methods (C# Programming Guide).
Remarks
            This is typically used when the results of a query are not processed by Dapper, for example, used to fill a 
DataTable
            or 
DataSet.
            
See Also