Exemple #1
0
 public static Task <T> FirstAsync <T, TMe>(this IWhereTarget <T, TMe> fluentBuilder, Expression <Func <T, bool> > expression)
 {
     return(fluentBuilder.Where(expression).FirstAsync());
 }
Exemple #2
0
 public static T SingleOrDefault <T, TMe>(this IWhereTarget <T, TMe> fluentBuilder, Expression <Func <T, bool> > expression)
 {
     return(fluentBuilder.Where(expression).SingleOrDefault());
 }
Exemple #3
0
 public static IWhereResult <T, TMe> WhereExists <T, TMe>(this IWhereTarget <T, TMe> fluentBuilder, Action <ISelectResult <T, TMe> > subQuery)
 {
     return(fluentBuilder.Where(subQuery, SubQueryType.Exists));
 }