public int Delete <T>(List <string> keys) where T : class
 {
     return(AsyncHelper.RunSync(() => DeleteAsync <T>(keys)));
 }
 public int DeleteSql(IQueryable source)
 {
     return(AsyncHelper.RunSync(() => DeleteSqlAsync(source)));
 }
Esempio n. 3
0
 public long?Sum(Expression <Func <T, long?> > selector)
 {
     return(AsyncHelper.RunSync(() => SumAsync(selector)));
 }
Esempio n. 4
0
 public bool Any(Expression <Func <T, bool> > predicate)
 {
     return(AsyncHelper.RunSync(() => AnyAsync(predicate)));
 }
Esempio n. 5
0
 public double Sum(Expression <Func <T, double> > selector)
 {
     return(AsyncHelper.RunSync(() => SumAsync(selector)));
 }
Esempio n. 6
0
 public int Sum(Expression <Func <T, int> > selector)
 {
     return(AsyncHelper.RunSync(() => SumAsync(selector)));
 }
Esempio n. 7
0
 public decimal?Average(Expression <Func <T, decimal?> > selector)
 {
     return(AsyncHelper.RunSync(() => AverageAsync(selector)));
 }
Esempio n. 8
0
 public decimal?Sum(Expression <Func <T, decimal?> > selector)
 {
     return(AsyncHelper.RunSync(() => SumAsync(selector)));
 }
Esempio n. 9
0
 public float?Average(Expression <Func <T, float?> > selector)
 {
     return(AsyncHelper.RunSync(() => AverageAsync(selector)));
 }
Esempio n. 10
0
 public double Average(Expression <Func <T, double> > selector)
 {
     return(AsyncHelper.RunSync(() => AverageAsync(selector)));
 }
Esempio n. 11
0
 public TResult Min <TResult>(Expression <Func <T, TResult> > selector)
 {
     return(AsyncHelper.RunSync(() => MinAsync(selector)));
 }
Esempio n. 12
0
 public T FirstOrDefault()
 {
     return(AsyncHelper.RunSync(() => FirstOrDefaultAsync()));
 }
Esempio n. 13
0
 public List <T> ToList()
 {
     return(AsyncHelper.RunSync(() => ToListAsync()));
 }
Esempio n. 14
0
 public int Count()
 {
     return(AsyncHelper.RunSync(() => CountAsync()));
 }
Esempio n. 15
0
 public List <TResult> Distinct <TResult>(Expression <Func <T, TResult> > selector)
 {
     return(AsyncHelper.RunSync(() => DistinctAsync(selector)));
 }