Exemplo n.º 1
0
 public static Task Query <TRes>(this ModelRequestData <TRes> modelRequestData, ISqDatabase database, Action <TRes> handler)
 => modelRequestData.Expr.Query(database, r => handler(modelRequestData.Mapper(r)));
Exemplo n.º 2
0
 public static Task <TAcc> Query <TRes, TAcc>(this ModelRequestData <TRes> modelRequestData, ISqDatabase database, TAcc seed, Func <TAcc, TRes, TAcc> handler)
 => modelRequestData.Expr.Query(database, seed, (acc, r) => handler(acc, modelRequestData.Mapper(r)));
Exemplo n.º 3
0
 public static Task <List <TRes> > QueryList <TRes>(this ModelRequestData <TRes> modelRequestData, ISqDatabase database)
 => modelRequestData.Expr.QueryList(database, modelRequestData.Mapper);