/// <summary> /// Max /// </summary> /// <param name="_LambdaExpression"></param> /// <param name="Ado"></param> /// <param name="_Sql"></param> /// <returns></returns> public T Sum <T>(LambdaExpression _LambdaExpression, SQL _Sql) { var _New_Sql = new Max_Min_Sum_Analysis().CreateSum(_LambdaExpression, _Sql); Analysis.ToSql(_New_Sql, Ado.CommitState); return(Ado.ExecuteScalar <T>(_New_Sql.Code.ToString(), _Sql.GetDynamicParameters())); }
/// <summary> /// 获取 Count /// </summary> /// <param name="Ado"></param> /// <param name="_Sql"></param> public int Count(SQL _Sql) { var _New_Sql = new CountAnalysis().Create(_Sql); Analysis.ToSql(_New_Sql, Ado.CommitState); return(Ado.ExecuteScalar <int>(_New_Sql.Code.ToString(), _Sql.GetDynamicParameters())); }