using System; using System.Collections.Generic; using System.Data; using System.Linq.Expressions; using System.Threading.Tasks; namespace SqlSugar { public partial interface ISugarQueryable { SqlSugarClient Context { get; set; } ISqlBuilder SqlBuilder { get; set; } QueryBuilder QueryBuilder { get; set; } ISugarQueryable AS(string tableName); ISugarQueryable AS(string tableName); ISugarQueryable With(string withString); ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); ISugarQueryable AddParameters(object parameters); ISugarQueryable AddParameters(SugarParameter[] parameters); ISugarQueryable AddParameters(List parameters); ISugarQueryable AddJoinInfo(string tableName, string shortName, string joinWhere, JoinType type = JoinType.Left); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(string whereString, object parameters = null); ISugarQueryable Where(List conditionalModels); ISugarQueryable Having(Expression> expression); ISugarQueryable Having(string whereString, object parameters = null); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, string whereString, object parameters = null); T InSingle(object pkValue); ISugarQueryable In(params TParamter[] pkValues); ISugarQueryable In(string InFieldName, params FieldType[] inValues); ISugarQueryable In(Expression> expression, params FieldType[] inValues); ISugarQueryable In(List pkValues); ISugarQueryable In(string InFieldName, List inValues); ISugarQueryable In(Expression> expression, List inValues); ISugarQueryable In(Expression> expression, ISugarQueryable childQueryExpression); ISugarQueryable OrderBy(string orderFileds, string orderType = null); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderByIF(bool isOrderBy, string orderFileds); ISugarQueryable OrderByIF(bool isOrderBy, Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(string groupFileds); ISugarQueryable PartitionBy(Expression> expression); ISugarQueryable PartitionBy(string groupFileds); ISugarQueryable Skip(int index); ISugarQueryable Take(int num); T Single(); Task SingleAsync(); T Single(Expression> expression); Task SingleAsync(Expression> expression); T First(); Task FirstAsync(); T First(Expression> expression); Task FirstAsync(Expression> expression); bool Any(Expression> expression); Task AnyAsync(Expression> expression); bool Any(); Task AnyAsync(); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(string select); ISugarQueryable Select(string select); ISugarQueryable MergeTable(); int Count(); Task CountAsync(); int Count(Expression> expression); Task CountAsync(Expression> expression); TResult Max(string maxField); Task MaxAsync(string maxField); TResult Max(Expression> expression); Task MaxAsync(Expression> expression); TResult Min(string minField); Task MinAsync(string minField); TResult Min(Expression> expression); Task MinAsync(Expression> expression); TResult Sum(string sumField); Task SumAsync(string sumField); TResult Sum(Expression> expression); Task SumAsync(Expression> expression); TResult Avg(string avgField); Task AvgAsync(string avgField); TResult Avg(Expression> expression); Task AvgAsync(Expression> expression); List ToList(); Task> ToListAsync(); string ToJson(); Task ToJsonAsync(); string ToJsonPage(int pageIndex, int pageSize); Task ToJsonPageAsync(int pageIndex, int pageSize); string ToJsonPage(int pageIndex, int pageSize, ref int totalNumber); Task> ToJsonPageAsync(int pageIndex, int pageSize, int totalNumber); KeyValuePair> ToSql(); DataTable ToDataTable(); Task ToDataTableAsync(); DataTable ToDataTablePage(int pageIndex, int pageSize); Task ToDataTablePageAsync(int pageIndex, int pageSize); DataTable ToDataTablePage(int pageIndex, int pageSize, ref int totalNumber); Task> ToDataTablePageAsync(int pageIndex, int pageSize, int totalNumber); List ToPageList(int pageIndex, int pageSize); Task> ToPageListAsync(int pageIndex, int pageSize); List ToPageList(int pageIndex, int pageSize, ref int totalNumber); Task, int>> ToPageListAsync(int pageIndex, int pageSize, int totalNumber); ISugarQueryable WithCache(int cacheDurationInSeconds = int.MaxValue); ISugarQueryable WithCacheIF(bool isCache, int cacheDurationInSeconds = int.MaxValue); string ToClassString(string className); void Clear(); } public partial interface ISugarQueryable : ISugarQueryable { #region Where new ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); new ISugarQueryable Where(List conditionalModels); new ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); new ISugarQueryable Where(string whereString, object whereObj = null); new ISugarQueryable WhereIF(bool isWhere, string whereString, object whereObj = null); #endregion #region Select ISugarQueryable Select(Expression> expression); #endregion #region OrderBy new ISugarQueryable OrderBy(string orderFileds, string orderType = null); new ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); new ISugarQueryable OrderByIF(bool isOrderBy, string orderFileds); new ISugarQueryable OrderByIF(bool isOrderBy, Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderByIF(bool isOrderBy, Expression> expression, OrderByType type = OrderByType.Asc); #endregion #region GroupBy new ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); new ISugarQueryable Having(Expression> expression); ISugarQueryable Having(Expression> expression); new ISugarQueryable Having(string whereString, object whereObj = null); #endregion #region Aggr TResult Max(Expression> expression); TResult Min(Expression> expression); TResult Sum(Expression> expression); TResult Avg(Expression> expression); #endregion #region In new ISugarQueryable In(Expression> expression, params FieldType[] inValues); new ISugarQueryable In(Expression> expression, List inValues); new ISugarQueryable In(Expression> expression, ISugarQueryable childQueryExpression); #endregion #region Other new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable AddParameters(object parameters); new ISugarQueryable AddParameters(SugarParameter[] parameters); new ISugarQueryable AddParameters(List parameters); new ISugarQueryable AddJoinInfo(string tableName, string shortName, string joinWhere, JoinType type = JoinType.Left); new ISugarQueryable With(string withString); new ISugarQueryable WithCache(int cacheDurationInSeconds = int.MaxValue); new ISugarQueryable WithCacheIF(bool isCache, int cacheDurationInSeconds = int.MaxValue); #endregion } public partial interface ISugarQueryable : ISugarQueryable { #region Where new ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); new ISugarQueryable Where(List conditionalModels); new ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); new ISugarQueryable Where(string whereString, object parameters = null); new ISugarQueryable WhereIF(bool isWhere, string whereString, object parameters = null); #endregion #region Select ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); #endregion #region OrderBy new ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); new ISugarQueryable OrderByIF(bool isOrderBy, string orderFileds); new ISugarQueryable OrderByIF(bool isOrderBy, Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderByIF(bool isOrderBy, Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderByIF(bool isOrderBy, Expression> expression, OrderByType type = OrderByType.Asc); #endregion #region GroupBy new ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); new ISugarQueryable Having(Expression> expression); ISugarQueryable Having(Expression> expression); ISugarQueryable Having(Expression> expression); new ISugarQueryable Having(string whereString, object parameters = null); #endregion #region Aggr TResult Max(Expression> expression); TResult Min(Expression> expression); TResult Sum(Expression> expression); TResult Avg(Expression> expression); #endregion #region In new ISugarQueryable In(Expression> expression, params FieldType[] inValues); new ISugarQueryable In(Expression> expression, List inValues); new ISugarQueryable In(Expression> expression, ISugarQueryable childQueryExpression); #endregion #region Other new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable AddParameters(object parameters); new ISugarQueryable AddParameters(SugarParameter[] parameters); new ISugarQueryable AddParameters(List parameters); new ISugarQueryable AddJoinInfo(string tableName, string shortName, string joinWhere, JoinType type = JoinType.Left); new ISugarQueryable With(string withString); new ISugarQueryable WithCache(int cacheDurationInSeconds = int.MaxValue); new ISugarQueryable WithCacheIF(bool isCache, int cacheDurationInSeconds = int.MaxValue); #endregion } public partial interface ISugarQueryable : ISugarQueryable { #region Where new ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); new ISugarQueryable Where(List conditionalModels); new ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); new ISugarQueryable Where(string whereString, object parameters = null); new ISugarQueryable WhereIF(bool isWhere, string whereString, object parameters = null); #endregion #region Select ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); #endregion #region OrderBy new ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); new ISugarQueryable OrderByIF(bool isOrderBy, string orderFileds); new ISugarQueryable OrderByIF(bool isOrderBy, Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderByIF(bool isOrderBy, Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderByIF(bool isOrderBy, Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderByIF(bool isOrderBy, Expression> expression, OrderByType type = OrderByType.Asc); #endregion #region GroupBy new ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); new ISugarQueryable Having(Expression> expression); ISugarQueryable Having(Expression> expression); ISugarQueryable Having(Expression> expression); ISugarQueryable Having(Expression> expression); new ISugarQueryable Having(string whereString, object parameters = null); #endregion #region Aggr TResult Max(Expression> expression); TResult Min(Expression> expression); TResult Sum(Expression> expression); TResult Avg(Expression> expression); #endregion #region In new ISugarQueryable In(Expression> expression, params FieldType[] inValues); new ISugarQueryable In(Expression> expression, List inValues); new ISugarQueryable In(Expression> expression, ISugarQueryable childQueryExpression); #endregion #region Other new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable AddParameters(object parameters); new ISugarQueryable AddParameters(SugarParameter[] parameters); new ISugarQueryable AddParameters(List parameters); new ISugarQueryable AddJoinInfo(string tableName, string shortName, string joinWhere, JoinType type = JoinType.Left); new ISugarQueryable With(string withString); new ISugarQueryable WithCache(int cacheDurationInSeconds = int.MaxValue); new ISugarQueryable WithCacheIF(bool isCache, int cacheDurationInSeconds = int.MaxValue); #endregion } public partial interface ISugarQueryable : ISugarQueryable { #region Where new ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); new ISugarQueryable Where(List conditionalModels); new ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); new ISugarQueryable Where(string whereString, object parameters = null); new ISugarQueryable WhereIF(bool isWhere, string whereString, object parameters = null); #endregion #region Select ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); #endregion #region OrderBy new ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); new ISugarQueryable OrderByIF(bool isOrderBy, string orderFileds); new ISugarQueryable OrderByIF(bool isOrderBy, Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderByIF(bool isOrderBy, Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderByIF(bool isOrderBy, Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderByIF(bool isOrderBy, Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderByIF(bool isOrderBy, Expression> expression, OrderByType type = OrderByType.Asc); #endregion #region GroupBy new ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); #endregion #region Aggr TResult Max(Expression> expression); TResult Min(Expression> expression); TResult Sum(Expression> expression); TResult Avg(Expression> expression); #endregion #region In new ISugarQueryable In(Expression> expression, params FieldType[] inValues); new ISugarQueryable In(Expression> expression, List inValues); new ISugarQueryable In(Expression> expression, ISugarQueryable childQueryExpression); #endregion #region Other new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable AddParameters(object parameters); new ISugarQueryable AddParameters(SugarParameter[] parameters); new ISugarQueryable AddParameters(List parameters); new ISugarQueryable AddJoinInfo(string tableName, string shortName, string joinWhere, JoinType type = JoinType.Left); new ISugarQueryable With(string withString); new ISugarQueryable WithCache(int cacheDurationInSeconds = int.MaxValue); new ISugarQueryable WithCacheIF(bool isCache, int cacheDurationInSeconds = int.MaxValue); #endregion } public partial interface ISugarQueryable : ISugarQueryable { #region Where new ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); new ISugarQueryable Where(List conditionalModels); new ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); new ISugarQueryable Where(string whereString, object parameters = null); new ISugarQueryable WhereIF(bool isWhere, string whereString, object parameters = null); #endregion #region Select ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); #endregion #region OrderBy new ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); #endregion #region GroupBy new ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); #endregion #region Aggr TResult Max(Expression> expression); TResult Min(Expression> expression); TResult Sum(Expression> expression); TResult Avg(Expression> expression); #endregion #region In new ISugarQueryable In(Expression> expression, params FieldType[] inValues); new ISugarQueryable In(Expression> expression, List inValues); new ISugarQueryable In(Expression> expression, ISugarQueryable childQueryExpression); #endregion #region Other new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable AddParameters(object parameters); new ISugarQueryable AddParameters(SugarParameter[] parameters); new ISugarQueryable AddParameters(List parameters); new ISugarQueryable AddJoinInfo(string tableName, string shortName, string joinWhere, JoinType type = JoinType.Left); new ISugarQueryable With(string withString); new ISugarQueryable WithCache(int cacheDurationInSeconds = int.MaxValue); new ISugarQueryable WithCacheIF(bool isCache, int cacheDurationInSeconds = int.MaxValue); #endregion } public partial interface ISugarQueryable : ISugarQueryable { #region Where new ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); new ISugarQueryable Where(List conditionalModels); new ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); new ISugarQueryable Where(string whereString, object parameters = null); new ISugarQueryable WhereIF(bool isWhere, string whereString, object parameters = null); #endregion #region Select ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); #endregion #region OrderBy new ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); #endregion #region GroupBy new ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); #endregion #region Aggr TResult Max(Expression> expression); TResult Min(Expression> expression); TResult Sum(Expression> expression); TResult Avg(Expression> expression); #endregion #region In new ISugarQueryable In(Expression> expression, params FieldType[] inValues); new ISugarQueryable In(Expression> expression, List inValues); new ISugarQueryable In(Expression> expression, ISugarQueryable childQueryExpression); #endregion #region Other new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable AddParameters(object parameters); new ISugarQueryable AddParameters(SugarParameter[] parameters); new ISugarQueryable AddParameters(List parameters); new ISugarQueryable AddJoinInfo(string tableName, string shortName, string joinWhere, JoinType type = JoinType.Left); new ISugarQueryable With(string withString); new ISugarQueryable WithCache(int cacheDurationInSeconds = int.MaxValue); new ISugarQueryable WithCacheIF(bool isCache, int cacheDurationInSeconds = int.MaxValue); #endregion } public partial interface ISugarQueryable : ISugarQueryable { #region Where new ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); new ISugarQueryable Where(List conditionalModels); new ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); new ISugarQueryable Where(string whereString, object parameters = null); new ISugarQueryable WhereIF(bool isWhere, string whereString, object parameters = null); #endregion #region Select ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); #endregion #region OrderBy new ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); #endregion #region GroupBy new ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); #endregion #region Aggr TResult Max(Expression> expression); TResult Min(Expression> expression); TResult Sum(Expression> expression); TResult Avg(Expression> expression); #endregion #region In new ISugarQueryable In(Expression> expression, params FieldType[] inValues); new ISugarQueryable In(Expression> expression, List inValues); new ISugarQueryable In(Expression> expression, ISugarQueryable childQueryExpression); #endregion #region Other new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable AddParameters(object parameters); new ISugarQueryable AddParameters(SugarParameter[] parameters); new ISugarQueryable AddParameters(List parameters); new ISugarQueryable AddJoinInfo(string tableName, string shortName, string joinWhere, JoinType type = JoinType.Left); new ISugarQueryable With(string withString); new ISugarQueryable WithCache(int cacheDurationInSeconds = int.MaxValue); new ISugarQueryable WithCacheIF(bool isCache, int cacheDurationInSeconds = int.MaxValue); #endregion } #region 9-12 public partial interface ISugarQueryable : ISugarQueryable { #region Where new ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); new ISugarQueryable Where(List conditionalModels); new ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); new ISugarQueryable Where(string whereString, object parameters = null); new ISugarQueryable WhereIF(bool isWhere, string whereString, object parameters = null); #endregion #region Select ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); #endregion #region OrderBy new ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); #endregion #region GroupBy new ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); #endregion #region Aggr TResult Max(Expression> expression); TResult Min(Expression> expression); TResult Sum(Expression> expression); TResult Avg(Expression> expression); #endregion #region In new ISugarQueryable In(Expression> expression, params FieldType[] inValues); new ISugarQueryable In(Expression> expression, List inValues); new ISugarQueryable In(Expression> expression, ISugarQueryable childQueryExpression); #endregion #region Other new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable AddParameters(object parameters); new ISugarQueryable AddParameters(SugarParameter[] parameters); new ISugarQueryable AddParameters(List parameters); new ISugarQueryable AddJoinInfo(string tableName, string shortName, string joinWhere, JoinType type = JoinType.Left); new ISugarQueryable With(string withString); new ISugarQueryable WithCache(int cacheDurationInSeconds = int.MaxValue); new ISugarQueryable WithCacheIF(bool isCache, int cacheDurationInSeconds = int.MaxValue); #endregion } public partial interface ISugarQueryable : ISugarQueryable { #region Where new ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); new ISugarQueryable Where(List conditionalModels); new ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); new ISugarQueryable Where(string whereString, object parameters = null); new ISugarQueryable WhereIF(bool isWhere, string whereString, object parameters = null); #endregion #region Select ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); #endregion #region OrderBy new ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); #endregion #region GroupBy new ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); #endregion #region Aggr TResult Max(Expression> expression); TResult Min(Expression> expression); TResult Sum(Expression> expression); TResult Avg(Expression> expression); #endregion #region In new ISugarQueryable In(Expression> expression, params FieldType[] inValues); new ISugarQueryable In(Expression> expression, List inValues); new ISugarQueryable In(Expression> expression, ISugarQueryable childQueryExpression); #endregion #region Other new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable AddParameters(object parameters); new ISugarQueryable AddParameters(SugarParameter[] parameters); new ISugarQueryable AddParameters(List parameters); new ISugarQueryable AddJoinInfo(string tableName, string shortName, string joinWhere, JoinType type = JoinType.Left); new ISugarQueryable With(string withString); new ISugarQueryable WithCache(int cacheDurationInSeconds = int.MaxValue); new ISugarQueryable WithCacheIF(bool isCache, int cacheDurationInSeconds = int.MaxValue); #endregion } public partial interface ISugarQueryable : ISugarQueryable { #region Where new ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); new ISugarQueryable Where(List conditionalModels); new ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); new ISugarQueryable Where(string whereString, object parameters = null); new ISugarQueryable WhereIF(bool isWhere, string whereString, object parameters = null); #endregion #region Select ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); #endregion #region OrderBy new ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); #endregion #region GroupBy new ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); #endregion #region Aggr TResult Max(Expression> expression); TResult Min(Expression> expression); TResult Sum(Expression> expression); TResult Avg(Expression> expression); #endregion #region In new ISugarQueryable In(Expression> expression, params FieldType[] inValues); new ISugarQueryable In(Expression> expression, List inValues); new ISugarQueryable In(Expression> expression, ISugarQueryable childQueryExpression); #endregion #region Other new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable AddParameters(object parameters); new ISugarQueryable AddParameters(SugarParameter[] parameters); new ISugarQueryable AddParameters(List parameters); new ISugarQueryable AddJoinInfo(string tableName, string shortName, string joinWhere, JoinType type = JoinType.Left); new ISugarQueryable With(string withString); new ISugarQueryable WithCache(int cacheDurationInSeconds = int.MaxValue); new ISugarQueryable WithCacheIF(bool isCache, int cacheDurationInSeconds = int.MaxValue); #endregion } public partial interface ISugarQueryable : ISugarQueryable { #region Where new ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); new ISugarQueryable Where(List conditionalModels); new ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); ISugarQueryable WhereIF(bool isWhere, Expression> expression); new ISugarQueryable Where(string whereString, object parameters = null); new ISugarQueryable WhereIF(bool isWhere, string whereString, object parameters = null); #endregion #region Select ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); #endregion #region OrderBy new ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); #endregion #region GroupBy new ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); #endregion #region Aggr TResult Max(Expression> expression); TResult Min(Expression> expression); TResult Sum(Expression> expression); TResult Avg(Expression> expression); #endregion #region In new ISugarQueryable In(Expression> expression, params FieldType[] inValues); new ISugarQueryable In(Expression> expression, List inValues); new ISugarQueryable In(Expression> expression, ISugarQueryable childQueryExpression); #endregion #region Other new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable AddParameters(object parameters); new ISugarQueryable AddParameters(SugarParameter[] parameters); new ISugarQueryable AddParameters(List parameters); new ISugarQueryable AddJoinInfo(string tableName, string shortName, string joinWhere, JoinType type = JoinType.Left); new ISugarQueryable With(string withString); new ISugarQueryable WithCache(int cacheDurationInSeconds = int.MaxValue); new ISugarQueryable WithCacheIF(bool isCache, int cacheDurationInSeconds = int.MaxValue); #endregion } #endregion }