Hi @Strosala Ioan ,
I found you post the same problem and your codes on the stackoverflow. As far as I think,you could execute two stored procedures and then use QueryMultiple method to map the sql . Just like this:
public ActionResult Index()
{
using (IDbConnection conn = new SqlConnection(@"xxx"))
{
string sql = @"exec getCustomer;
exec getOrder;";
using (var multi = conn.QueryMultiple(sql))
{
var t1 = multi.Read<Customer>().ToList();
var t2 = multi.Read<Order>().ToList();
}
return View();
}
}
Best regards,
Yijing Sun
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.