Пример #1
0
 protected override SqlGenerate Sum(LambdaExpression expression, SqlGenerate sqlGenerate)
 {
     SqlExpressionProvider.Sum(expression.Body, sqlGenerate);
     return(sqlGenerate);
 }
Пример #2
0
 protected override SqlGenerate Sum(UnaryExpression expression, SqlGenerate sqlGenerate)
 {
     SqlExpressionProvider.Sum(expression.Operand, sqlGenerate);
     return(sqlGenerate);
 }
Пример #3
0
 /// <summary>
 /// 总计
 /// </summary>
 /// <param name="expression"></param>
 /// <returns></returns>
 public SqlExpressionCore <T> Sum(Expression <Func <T, object> > expression)
 {
     sqlGenerate.Clear();
     SqlExpressionProvider.Sum(expression, sqlGenerate);
     return(this);
 }