/// <summary> /// Max /// </summary> /// <param name="expression">表达式树</param> /// <returns>SqlBuilderCore</returns> public SqlBuilderCore <T> Max(Expression <Func <T, object> > expression) { this._sqlPack.Clear(); this._sqlPack.IsSingleTable = true; SqlBuilderProvider.Max(expression.Body, this._sqlPack); return(this); }
/// <summary> /// Max /// </summary> /// <param name="expression">表达式树</param> /// <param name="sqlPack">sql打包对象</param> /// <returns>SqlPack</returns> public override SqlPack Max(UnaryExpression expression, SqlPack sqlPack) { SqlBuilderProvider.Max(expression.Operand, sqlPack); return(sqlPack); }