예제 #1
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)));
예제 #2
0
 public static Task Query <TRes>(this ModelRequestData <TRes> modelRequestData, ISqDatabase database, Action <TRes> handler)
 => modelRequestData.Expr.Query(database, r => handler(modelRequestData.Mapper(r)));