Using dapper built in methods with query builder
Ace000001 opened this issue · 1 comments
Ace000001 commented
before this package i was using Query multi mapping in the following manner:
connection.QueryAsync<BookingViewModel, UserViewModel, OperatorViewModel, BookingViewModel>(
sqlQuery,
(booking, user, bboperator) =>
{
booking.BookedByUser = user;
booking.BookedByOperator = bboperator;
return booking;
},
parms,
splitOn: "BookingId, UserId, OperatorId");
with the queryBuilder i would like to use the same with dapper support:
queryBuilder.QueryAsync<BookingViewModel, UserViewModel, OperatorViewModel, BookingViewModel>(
(booking, user, bboperator) =>
{
booking.BookedByUser = user;
booking.BookedByOperator = bboperator;
return booking;
},
splitOn: "BookingId, UserId, OperatorId");
Is it something possible in this package?