I\'d like to use Dapper in a situation where the execution of a single stored procedure will return 50 multiple separate selects, none of the individual result sets will be
This one is from the home page, but there should be similar in the tests:
var sql = @"...";
using (var multi = connection.QueryMultiple(sql, new {id=selectedId}))
{
var customer = multi.Read<Customer>().Single();
var orders = multi.Read<Order>().ToList();
var returns = multi.Read<Return>().ToList();
...
}
Arguments etc work as normal, and should map directly to defined parameter names if CommandType is specified.
Each call to .Read<T>()
relates to a successive results grid.