protected override SqlGenerate Sum(LambdaExpression expression, SqlGenerate sqlGenerate) { SqlExpressionProvider.Sum(expression.Body, sqlGenerate); return(sqlGenerate); }
protected override SqlGenerate Sum(UnaryExpression expression, SqlGenerate sqlGenerate) { SqlExpressionProvider.Sum(expression.Operand, sqlGenerate); return(sqlGenerate); }
/// <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); }