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)));
 }
示例#3
0
 public long?Sum(Expression <Func <T, long?> > selector)
 {
     return(AsyncHelper.RunSync(() => SumAsync(selector)));
 }
示例#4
0
 public bool Any(Expression <Func <T, bool> > predicate)
 {
     return(AsyncHelper.RunSync(() => AnyAsync(predicate)));
 }
示例#5
0
 public double Sum(Expression <Func <T, double> > selector)
 {
     return(AsyncHelper.RunSync(() => SumAsync(selector)));
 }
示例#6
0
 public int Sum(Expression <Func <T, int> > selector)
 {
     return(AsyncHelper.RunSync(() => SumAsync(selector)));
 }
示例#7
0
 public decimal?Average(Expression <Func <T, decimal?> > selector)
 {
     return(AsyncHelper.RunSync(() => AverageAsync(selector)));
 }
示例#8
0
 public decimal?Sum(Expression <Func <T, decimal?> > selector)
 {
     return(AsyncHelper.RunSync(() => SumAsync(selector)));
 }
示例#9
0
 public float?Average(Expression <Func <T, float?> > selector)
 {
     return(AsyncHelper.RunSync(() => AverageAsync(selector)));
 }
示例#10
0
 public double Average(Expression <Func <T, double> > selector)
 {
     return(AsyncHelper.RunSync(() => AverageAsync(selector)));
 }
示例#11
0
 public TResult Min <TResult>(Expression <Func <T, TResult> > selector)
 {
     return(AsyncHelper.RunSync(() => MinAsync(selector)));
 }
示例#12
0
 public T FirstOrDefault()
 {
     return(AsyncHelper.RunSync(() => FirstOrDefaultAsync()));
 }
示例#13
0
 public List <T> ToList()
 {
     return(AsyncHelper.RunSync(() => ToListAsync()));
 }
示例#14
0
 public int Count()
 {
     return(AsyncHelper.RunSync(() => CountAsync()));
 }
示例#15
0
 public List <TResult> Distinct <TResult>(Expression <Func <T, TResult> > selector)
 {
     return(AsyncHelper.RunSync(() => DistinctAsync(selector)));
 }