Stats

214 Contributors: 2 Tuesday, November 10, 2015
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: riptutorial@gmail.com
Roadmap: roadmap
Download eBook

Multiple Results

Download dapper eBook

Syntax

  • public static SqlMapper.GridReader QueryMultiple(this IDbConnection cnn, string sql, object param = null, IDbTransaction transaction = null, int? commandTimeout = null, CommandType? commandType = null)
  • public static SqlMapper.GridReader QueryMultiple(this IDbConnection cnn, CommandDefinition command)

Parameters

ParameterDetails
cnnYour database connection, must already be open
sqlThe sql string to process, contains multiple queries
paramObject to extract parameters from
SqlMapper.GridReaderProvides interfaces for reading multiple result sets from a Dapper query

Related Examples