using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading; using System.Threading.Tasks; namespace SqlSugar { public partial interface ISugarQueryable { SqlSugarProvider Context { get; set; } ISqlBuilder SqlBuilder { get; set; } QueryBuilder QueryBuilder { get; set; } bool IsCache { get; set; } int CacheTime { get; set; } ISugarQueryable Clone(); ISugarQueryable Hints(string hints); ISugarQueryable AS(string tableName); ISugarQueryable AS(string tableName); ISugarQueryable AsWithAttr(); ISugarQueryable AsType(Type tableNameType); ISugarQueryable Cast(); ISugarQueryable With(string withString); //ISugarQueryable CrossQueryWithAttr(); ISugarQueryable CrossQuery(string configId); ISugarQueryable CrossQuery(Type type ,string configId); ISugarQueryable IncludeLeftJoin(Expression> leftObjectExp); ISugarQueryable IncludeInnerJoin(Expression> innerObjectExp); ISugarQueryable IncludeRightJoin(Expression> rightObjectExp); ISugarQueryable IncludeFullJoin(Expression> fullObjectExp); ISugarQueryable LeftJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable LeftJoinIF(bool isJoin,ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable InnerJoinIF(bool isJoin, ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable InnerJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable RightJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable FullJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression); ISugarQueryable LeftJoinIF(bool isLeftJoin,Expression> joinExpression); ISugarQueryable InnerJoinIF(bool isJoin, Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression,string tableName); ISugarQueryable FullJoin(Expression> joinExpression); ISugarQueryable FullJoin(Expression> joinExpression,string tableName); ISugarQueryable InnerJoin(Expression> joinExpression); ISugarQueryable InnerJoin(Expression> joinExpression,string tableName); ISugarQueryable RightJoin(Expression> joinExpression); ISugarQueryable RightJoin(Expression> joinExpression,string tableName); ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); ISugarQueryable ClearFilter(params Type[] types); ISugarQueryable ClearFilter(); ISugarQueryable ClearFilter(); ISugarQueryable ClearFilter(); ISugarQueryable ClearFilter(); ISugarQueryable Filter(Type type); ISugarQueryable Mapper(Action mapperAction); ISugarQueryable Mapper(Expression> expression); ISugarQueryable Mapper(Action> mapperAction); ISugarQueryable Mapper(Expression> mapperObject, Expression> mainField, Expression> childField); ISugarQueryable Mapper(Expression>> mapperObject, Expression> mainField, Expression> childField); ISugarQueryable Mapper(Expression> mapperObject, Expression> mapperField); ISugarQueryable Mapper(Expression>> mapperObject, Expression> mapperField); 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 AddJoinInfo(Type JoinEntityType, string shortName, string joinWhere, JoinType type = JoinType.Left); ISugarQueryable AddJoinInfo(Type JoinEntityType, Dictionary keyIsShortName_ValueIsType_Dictionary, FormattableString onExpString, JoinType type = JoinType.Left); /// /// if a property that is not empty is a condition /// /// /// ISugarQueryable WhereClass(ClassType whereClass,bool ignoreDefaultValue=false)where ClassType: class,new(); /// /// if a property that is not empty is a condition /// /// /// ISugarQueryable WhereClass(List whereClassList,bool ignoreDefaultValue = false) where ClassType : class, new(); ISugarQueryable WhereClassByPrimaryKey(List list); ISugarQueryable WhereClassByWhereColumns(List list,string[] whereColumns); ISugarQueryable WhereClassByPrimaryKey(T data) ; ISugarQueryable WhereColumns(List> columns); ISugarQueryable WhereColumns(Dictionary columns, bool ignoreDefaultValue); ISugarQueryable WhereColumns(Dictionary columns); ISugarQueryable TranLock(DbLockType? LockType = DbLockType.Wait); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(string expShortName, FormattableString expressionString); ISugarQueryable Where(Dictionary keyIsShortName_ValueIsType_Dictionary, FormattableString expressionString); ISugarQueryable Where(string whereString, object parameters = null); ISugarQueryable Where(IFuncModel funcModel); ISugarQueryable Where(List conditionalModels); ISugarQueryable Where(List conditionalModels,bool isWrap); ISugarQueryable Where(string fieldName, string conditionalType, object fieldValue); ISugarQueryable Having(Expression> expression); ISugarQueryable HavingIF(bool isHaving,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); Task InSingleAsync(object pkValue); ISugarQueryable In(params TParamter[] pkValues); ISugarQueryable InIF(bool isIn, string fieldName, params TParamter[] pkValues); ISugarQueryable InIF(bool isIn,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 InIF(bool isWhere,Expression> expression, ISugarQueryable childQueryExpression); ISugarQueryable OrderBy(string orderByFields); ISugarQueryable OrderByPropertyName(string orderPropertyName,OrderByType? orderByType=null); ISugarQueryable OrderByPropertyNameIF(bool isOrderBy,string orderPropertyName, OrderByType? orderByType = null); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByIF(bool isOrderBy, string orderByFields); ISugarQueryable OrderByIF(bool isOrderBy, Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable SampleBy(int timeNumber, SampleByUnit timeType); ISugarQueryable SampleBy(int timeNumber, string timeType); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(string groupFileds); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, string groupFields); ISugarQueryable PartitionBy(Expression> expression); ISugarQueryable PartitionBy(string groupFileds); ISugarQueryable Skip(int index); ISugarQueryable Take(int num); ISugarQueryable Distinct(); T Single(); Task SingleAsync(); T Single(Expression> expression); Task SingleAsync(Expression> expression); T First(); Task FirstAsync(); Task FirstAsync(CancellationToken token); T First(Expression> expression); Task FirstAsync(Expression> expression); Task FirstAsync(Expression> expression, CancellationToken token); bool Any(Expression> expression); Task AnyAsync(Expression> expression); Task AnyAsync(Expression> expression, CancellationToken token); bool Any(); Task AnyAsync(); ISugarQueryable Select(string expShortName, FormattableString expSelect, Type resultType); ISugarQueryable Select(Dictionary keyIsShortName_ValueIsType_Dictionary, FormattableString expSelect, Type resultType); ISugarQueryable Select(string expShortName, FormattableString expSelect,Type EntityType, Type resultType); ISugarQueryable Select(string expShortName, FormattableString expSelect, Type resultType); ISugarQueryable Select(Expression expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression,bool isAutoFill); ISugarQueryable Select(); ISugarQueryable Select(string select); ISugarQueryable Select(string select); ISugarQueryable SelectMergeTable(Expression> expression); ISugarQueryable MergeTable(); void ForEachDataReader(Action action); Task ForEachDataReaderAsync(Action action); void ForEach(Action action, int singleMaxReads = 300, System.Threading.CancellationTokenSource cancellationTokenSource = null); Task ForEachAsync(Action action, int singleMaxReads = 300, System.Threading.CancellationTokenSource cancellationTokenSource = null); void ForEachByPage(Action action, int pageIndex, int pageSize, ref int totalNumber, int singleMaxReads = 300, System.Threading.CancellationTokenSource cancellationTokenSource = null); Task ForEachByPageAsync(Action action, int pageIndex, int pageSize, RefAsync totalNumber, int singleMaxReads = 300, System.Threading.CancellationTokenSource cancellationTokenSource = null); int Count(); Task CountAsync(); Task CountAsync(CancellationToken token); int Count(Expression> expression); Task CountAsync(Expression> expression); Task CountAsync(Expression> expression,CancellationToken token); TResult Max(string maxField); Task MaxAsync(string maxField); Task MaxAsync(string maxField,CancellationToken token); TResult Max(Expression> expression); Task MaxAsync(Expression> expression); Task MaxAsync(Expression> expression,CancellationToken token); 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(Expression> expression); Task> ToListAsync(Expression> expression); List ToList(); int IntoTable(); int IntoTable(Type TableEntityType); int IntoTable(string tableName); int IntoTable(Type TableEntityType,string tableName); Task IntoTableAsync(CancellationToken cancellationToken = default); Task IntoTableAsync(Type TableEntityType, CancellationToken cancellationToken = default); Task IntoTableAsync(string tableName, CancellationToken cancellationToken = default); Task IntoTableAsync(Type TableEntityType, string tableName, CancellationToken cancellationToken = default); //bool IntoTable(Type TableEntityType, params string[] columnNameList); //bool IntoTable(params string[] columnNameList); List SetContext(Expression> whereExpression, ParameterT parameter); List SetContext(Expression> thisFiled, Expression> mappingFiled, ParameterT parameter); List SetContext(Expression> thisFiled1, Expression> mappingFiled1, Expression> thisFiled2, Expression> mappingFiled2, ParameterT parameter); Task > SetContextAsync(Expression> thisFiled, Expression> mappingFiled, ParameterT parameter); Task> SetContextAsync(Expression> thisFiled1, Expression> mappingFiled1, Expression> thisFiled2, Expression> mappingFiled2, ParameterT parameter); Dictionary ToDictionary(Expression> key, Expression> value); Dictionary ToDictionary(Expression> key, Expression> value); Task> ToDictionaryAsync(Expression> key, Expression> value); Task> ToDictionaryAsync(Expression> key, Expression> value); List> ToDictionaryList(); Task>> ToDictionaryListAsync(); T[] ToArray(); Task ToArrayAsync(); Task> ToListAsync(); Task> ToListAsync(CancellationToken token); 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, RefAsync totalNumber); KeyValuePair> ToSql(); string ToSqlString(); List ToChildList(Expression> parentIdExpression, object primaryKeyValue, bool isContainOneself = true); List ToChildList(Expression> parentIdExpression, object[] primaryKeyValues, bool isContainOneself = true); Task> ToChildListAsync(Expression> parentIdExpression, object primaryKeyValue, bool isContainOneself = true); Task> ToChildListAsync(Expression> parentIdExpression, object[] primaryKeyValues, bool isContainOneself = true); List ToParentList(Expression> parentIdExpression, object primaryKeyValue); List ToParentList(Expression> parentIdExpression, object primaryKeyValue, Expression> parentWhereExpression); Task> ToParentListAsync(Expression> parentIdExpression, object primaryKeyValue); Task> ToParentListAsync(Expression> parentIdExpression, object primaryKeyValue, Expression> parentWhereExpression); List ToTree(string childPropertyName, string parentIdPropertyName, object rootValue, string primaryKeyPropertyName); List ToTree(Expression>> childListExpression, Expression> parentIdExpression,object rootValue); List ToTree(Expression>> childListExpression, Expression> parentIdExpression, object rootValue, Expression> primaryKeyExpression); Task> ToTreeAsync(string childPropertyName, string parentIdPropertyName, object rootValue, string primaryKeyPropertyName); Task> ToTreeAsync(Expression>> childListExpression, Expression> parentIdExpression, object rootValue); Task> ToTreeAsync(Expression>> childListExpression, Expression> parentIdExpression, object rootValue, Expression> primaryKeyExpression); List ToTree(Expression>> childListExpression, Expression> parentIdExpression, object rootValue, object[] childIds); List ToTree(Expression>> childListExpression, Expression> parentIdExpression, object rootValue, object[] childIds, Expression> primaryKeyExpression); Task> ToTreeAsync(Expression>> childListExpression, Expression> parentIdExpression, object rootValue, object[] childIds); Task> ToTreeAsync(Expression>> childListExpression, Expression> parentIdExpression, object rootValue, object[] childIds, Expression> primaryKeyExpression); DataTable ToDataTable(); DataTable ToDataTableByEntity(); Task ToDataTableAsync(); Task ToDataTableByEntityAsync(); DataTable ToDataTablePage(int pageNumber, int pageSize); Task ToDataTablePageAsync(int pageNumber, int pageSize); DataTable ToDataTablePage(int pageNumber, int pageSize, ref int totalNumber); DataTable ToDataTableByEntityPage(int pageNumber, int pageSize, ref int totalNumber); DataTable ToDataTablePage(int pageNumber, int pageSize, ref int totalNumber,ref int totalPage); Task ToDataTablePageAsync(int pageNumber, int pageSize, RefAsync totalNumber); Task ToDataTableByEntityPageAsync(int pageNumber, int pageSize, RefAsync totalNumber); List ToOffsetPage(int pageNumber, int pageSize); List ToOffsetPage(int pageNumber, int pageSize,ref int totalNumber); List ToOffsetPage(int pageNumber, int pageSize, ref int totalNumber,ref int totalPage); Task> ToOffsetPageAsync(int pageNumber, int pageSize); Task> ToOffsetPageAsync(int pageNumber, int pageSize, RefAsync totalNumber); Task> ToOffsetPageAsync(int pageNumber, int pageSize, RefAsync totalNumber, RefAsync totalPage); Task> ToOffsetPageAsync(int pageNumber, int pageSize, RefAsync totalNumber, CancellationToken token); Task> ToOffsetPageAsync(int pageNumber, int pageSize, RefAsync totalNumber, RefAsync totalPage, CancellationToken token); List ToPageList(int pageNumber, int pageSize); Task> ToPageListAsync(int pageNumber, int pageSize); Task> ToPageListAsync(int pageNumber, int pageSize,CancellationToken token); List ToPageList(int pageNumber, int pageSize, ref int totalNumber); List ToPageList(int pageNumber, int pageSize, ref int totalNumber, Expression> expression); List ToPageList(int pageNumber, int pageSize, ref int totalNumber,ref int totalPage); Task> ToPageListAsync(int pageNumber, int pageSize, RefAsync totalNumber); Task> ToPageListAsync(int pageNumber, int pageSize, RefAsync totalNumber,CancellationToken token); Task> ToPageListAsync(int pageNumber, int pageSize, RefAsync totalNumber, Expression> expression); Task> ToPageListAsync(int pageNumber, int pageSize, RefAsync totalNumber, RefAsync totalPage); Task> ToPageListAsync(int pageNumber, int pageSize, RefAsync totalNumber, RefAsync totalPage,CancellationToken token); ISugarQueryable WithCache(string cacheKey,int cacheDurationInSeconds = int.MaxValue); ISugarQueryable WithCache(int cacheDurationInSeconds = int.MaxValue); ISugarQueryable WithCacheIF(bool isCache, int cacheDurationInSeconds = int.MaxValue); string ToClassString(string className); void Clear(); void AddQueue(); ISugarQueryable IgnoreColumns(Expression> columns); ISugarQueryable IgnoreColumns(params string[] columns); #region 内存行转列 #region 同步 DataTable ToPivotTable(Func columnSelector, Expression> rowSelector, Func, TData> dataSelector); List ToPivotList(Func columnSelector, Expression> rowSelector, Func, TData> dataSelector); IEnumerable ToPivotEnumerable(Func columnSelector, Expression> rowSelector, Func, TData> dataSelector); string ToPivotJson(Func columnSelector, Expression> rowSelector, Func, TData> dataSelector); #endregion #region 异步 Task ToPivotTableAsync(Func columnSelector, Expression> rowSelector, Func, TData> dataSelector); Task> ToPivotListAsync(Func columnSelector, Expression> rowSelector, Func, TData> dataSelector); Task> ToPivotEnumerableAsync(Func columnSelector, Expression> rowSelector, Func, TData> dataSelector); Task ToPivotJsonAsync(Func columnSelector, Expression> rowSelector, Func, TData> dataSelector); #endregion #endregion ISugarQueryable SplitTable(Func,IEnumerable> getTableNamesFunc); ISugarQueryable SplitTable(DateTime beginTime,DateTime endTime); ISugarQueryable SplitTable(); } public partial interface ISugarQueryable : ISugarQueryable { new ISugarQueryable Hints(string hints); new ISugarQueryable SampleBy(int timeNumber, SampleByUnit timeType); new ISugarQueryable SampleBy(int timeNumber, string timeType); ISugarQueryable SelectMergeTable(Expression> expression); ISugarQueryable LeftJoinIF(bool isLeftJoin, Expression> joinExpression); ISugarQueryable InnerJoinIF(bool isJoin, Expression> joinExpression); ISugarQueryable LeftJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable LeftJoinIF(bool isJoin,ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable InnerJoinIF(bool isJoin, ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable InnerJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable RightJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable FullJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression); ISugarQueryable FullJoin(Expression> joinExpression); ISugarQueryable InnerJoin(Expression> joinExpression); ISugarQueryable RightJoin(Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression,string tableName); ISugarQueryable FullJoin(Expression> joinExpression,string tableName); ISugarQueryable InnerJoin(Expression> joinExpression,string tableName); ISugarQueryable RightJoin(Expression> joinExpression,string tableName); #region Where new ISugarQueryable Where(string expShortName, FormattableString expressionString); new ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); new ISugarQueryable Where(List conditionalModels); new ISugarQueryable Where(List conditionalModels, bool isWrap); new ISugarQueryable Where(IFuncModel funcModel); 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); /// /// if a property that is not empty is a condition /// /// /// new ISugarQueryable WhereClass(ClassType whereClass, bool ignoreDefaultValue = false) where ClassType : class, new(); /// /// if a property that is not empty is a condition /// /// /// new ISugarQueryable WhereClass(List whereClassList, bool ignoreDefaultValue = false) where ClassType : class, new(); #endregion #region Select ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression, bool isAutoFill); #endregion #region OrderBy new ISugarQueryable OrderBy(List models); new ISugarQueryable OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); new ISugarQueryable OrderBy(string orderByFields); new ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc); new ISugarQueryable OrderByIF(bool isOrderBy, string orderByFields); 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 PartitionBy(Expression> expression); ISugarQueryable PartitionBy(Expression> expression); new ISugarQueryable PartitionBy(string groupFileds); new ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); new ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); new ISugarQueryable GroupByIF(bool isGroupBy, string groupFields); new ISugarQueryable Having(Expression> expression); ISugarQueryable Having(Expression> expression); new ISugarQueryable Having(string whereString, object whereObj = null); new ISugarQueryable HavingIF(bool isHaving, Expression> expression); ISugarQueryable HavingIF(bool isHaving, Expression> expression); #endregion #region Aggr TResult Max(Expression> expression); TResult Min(Expression> expression); TResult Sum(Expression> expression); TResult Avg(Expression> expression); Task MaxAsync(Expression> expression); Task MinAsync(Expression> expression); Task SumAsync(Expression> expression); Task AvgAsync(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); ISugarQueryable In(Expression> expression, params FieldType[] inValues); ISugarQueryable In(Expression> expression, List inValues); ISugarQueryable In(Expression> expression, ISugarQueryable childQueryExpression); new ISugarQueryable InIF(bool isIn, params TParamter[] pkValues); new ISugarQueryable InIF(bool isIn, string fieldName, params TParamter[] pkValues); #endregion #region Other new ISugarQueryable Take(int num); new ISugarQueryable Clone(); new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(params Type[] types); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); 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); new ISugarQueryable Distinct(); bool Any(Expression> expression); #endregion } public partial interface ISugarQueryable : ISugarQueryable { new ISugarQueryable Hints(string hints); new ISugarQueryable SampleBy(int timeNumber, SampleByUnit timeType); new ISugarQueryable SampleBy(int timeNumber, string timeType); ISugarQueryable SelectMergeTable(Expression> expression); ISugarQueryable LeftJoinIF(bool isLeftJoin, Expression> joinExpression); ISugarQueryable InnerJoinIF(bool isJoin, Expression> joinExpression); ISugarQueryable LeftJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable LeftJoinIF(bool isJoin,ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable InnerJoinIF(bool isJoin, ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable InnerJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable RightJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable FullJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression); ISugarQueryable FullJoin(Expression> joinExpression); ISugarQueryable InnerJoin(Expression> joinExpression); ISugarQueryable RightJoin(Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression,string tableName); ISugarQueryable FullJoin(Expression> joinExpression,string tableName); ISugarQueryable InnerJoin(Expression> joinExpression,string tableName); ISugarQueryable RightJoin(Expression> joinExpression,string tableName); #region Where new ISugarQueryable Where(string expShortName, FormattableString expressionString); new ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); new ISugarQueryable Where(List conditionalModels); new ISugarQueryable Where(List conditionalModels,bool isWrap); new ISugarQueryable Where(IFuncModel funcModel); 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); /// /// if a property that is not empty is a condition /// /// /// new ISugarQueryable WhereClass(ClassType whereClass, bool ignoreDefaultValue = false) where ClassType : class, new(); /// /// if a property that is not empty is a condition /// /// /// new ISugarQueryable WhereClass(List whereClassList, bool ignoreDefaultValue = false) where ClassType : class, new(); #endregion #region Select ISugarQueryable Select(Expression> expression, bool isAutoFill); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); #endregion #region OrderBy new ISugarQueryable OrderBy(List models); new ISugarQueryable OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); new ISugarQueryable OrderBy(string orderByFields); 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 orderByFields); 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 PartitionBy(Expression> expression); ISugarQueryable PartitionBy(Expression> expression); ISugarQueryable PartitionBy(Expression> expression); new ISugarQueryable PartitionBy(string groupFileds); new ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); ISugarQueryable GroupBy(Expression> expression); new ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); new ISugarQueryable GroupByIF(bool isGroupBy, string groupFields); new ISugarQueryable Having(Expression> expression); ISugarQueryable Having(Expression> expression); ISugarQueryable Having(Expression> expression); new ISugarQueryable Having(string whereString, object parameters = null); new ISugarQueryable HavingIF(bool isHaving, Expression> expression); ISugarQueryable HavingIF(bool isHaving, Expression> expression); ISugarQueryable HavingIF(bool isHaving, Expression> expression); #endregion #region Aggr TResult Max(Expression> expression); TResult Min(Expression> expression); TResult Sum(Expression> expression); TResult Avg(Expression> expression); Task MaxAsync(Expression> expression); Task MinAsync(Expression> expression); Task SumAsync(Expression> expression); Task AvgAsync(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); ISugarQueryable In(Expression> expression, params FieldType[] inValues); ISugarQueryable In(Expression> expression, List inValues); ISugarQueryable In(Expression> expression, ISugarQueryable childQueryExpression); ISugarQueryable In(Expression> expression, params FieldType[] inValues); ISugarQueryable In(Expression> expression, List inValues); ISugarQueryable In(Expression> expression, ISugarQueryable childQueryExpression); new ISugarQueryable InIF(bool isIn, params TParamter[] pkValues); new ISugarQueryable InIF(bool isIn, string fieldName, params TParamter[] pkValues); #endregion #region Other new ISugarQueryable Take(int num); new ISugarQueryable Clone(); new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable ClearFilter(); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable ClearFilter(params Type[] types); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); 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); new ISugarQueryable Distinct(); bool Any(Expression> expression); #endregion } public partial interface ISugarQueryable : ISugarQueryable { new ISugarQueryable Hints(string hints); new ISugarQueryable SampleBy(int timeNumber, SampleByUnit timeType); new ISugarQueryable SampleBy(int timeNumber, string timeType); ISugarQueryable SelectMergeTable(Expression> expression); ISugarQueryable LeftJoinIF(bool isLeftJoin, Expression> joinExpression); ISugarQueryable InnerJoinIF(bool isJoin, Expression> joinExpression); ISugarQueryable LeftJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable LeftJoinIF(bool isJoin,ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable InnerJoinIF(bool isJoin, ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable InnerJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable RightJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression); ISugarQueryable FullJoin(Expression> joinExpression); ISugarQueryable InnerJoin(Expression> joinExpression); ISugarQueryable RightJoin(Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression,string tableName); ISugarQueryable FullJoin(Expression> joinExpression, string tableName); ISugarQueryable InnerJoin(Expression> joinExpression, string tableName); ISugarQueryable RightJoin(Expression> joinExpression, string tableName); #region Where new ISugarQueryable Where(string expShortName, FormattableString expressionString); new ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); ISugarQueryable Where(Expression> expression); new ISugarQueryable Where(List conditionalModels); new ISugarQueryable Where(List conditionalModels, bool isWrap); new ISugarQueryable Where(IFuncModel funcModel); 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); /// /// if a property that is not empty is a condition /// /// /// new ISugarQueryable WhereClass(ClassType whereClass, bool ignoreDefaultValue = false) where ClassType : class, new(); /// /// if a property that is not empty is a condition /// /// /// new ISugarQueryable WhereClass(List whereClassList, bool ignoreDefaultValue = false) where ClassType : class, new(); #endregion #region Select ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression, bool isAutoFill); #endregion #region OrderBy new ISugarQueryable OrderBy(List models); new ISugarQueryable OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); new ISugarQueryable OrderBy(string orderByFields); 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 orderByFields); 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 GroupByIF(bool isGroupBy,Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); new ISugarQueryable GroupByIF(bool isGroupBy, string groupFields); 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); new ISugarQueryable HavingIF(bool isHaving, Expression> expression); ISugarQueryable HavingIF(bool isHaving, Expression> expression); ISugarQueryable HavingIF(bool isHaving, Expression> expression); ISugarQueryable HavingIF(bool isHaving, 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); ISugarQueryable In(Expression> expression, params FieldType[] inValues); ISugarQueryable In(Expression> expression, List inValues); ISugarQueryable In(Expression> expression, ISugarQueryable childQueryExpression); ISugarQueryable In(Expression> expression, params FieldType[] inValues); ISugarQueryable In(Expression> expression, List inValues); ISugarQueryable In(Expression> expression, ISugarQueryable childQueryExpression); ISugarQueryable In(Expression> expression, params FieldType[] inValues); ISugarQueryable In(Expression> expression, List inValues); ISugarQueryable In(Expression> expression, ISugarQueryable childQueryExpression); new ISugarQueryable InIF(bool isIn, params TParamter[] pkValues); new ISugarQueryable InIF(bool isIn, string fieldName, params TParamter[] pkValues); #endregion #region Other new ISugarQueryable Take(int num); new ISugarQueryable Clone(); new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable ClearFilter(); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable ClearFilter(params Type[] types); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); 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); new ISugarQueryable Distinct(); bool Any(Expression> expression); #endregion } public partial interface ISugarQueryable : ISugarQueryable { new ISugarQueryable Hints(string hints); new ISugarQueryable SampleBy(int timeNumber, SampleByUnit timeType); new ISugarQueryable SampleBy(int timeNumber, string timeType); ISugarQueryable SelectMergeTable(Expression> expression); ISugarQueryable LeftJoinIF(bool isLeftJoin, Expression> joinExpression); ISugarQueryable InnerJoinIF(bool isJoin, Expression> joinExpression); ISugarQueryable LeftJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable LeftJoinIF(bool isJoin,ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable InnerJoinIF(bool isJoin, ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable InnerJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable RightJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression); ISugarQueryable FullJoin(Expression> joinExpression); ISugarQueryable InnerJoin(Expression> joinExpression); ISugarQueryable RightJoin(Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression,string tableName); ISugarQueryable FullJoin(Expression> joinExpression,string tableName); ISugarQueryable InnerJoin(Expression> joinExpression,string tableName); ISugarQueryable RightJoin(Expression> joinExpression,string tableName); #region Where new ISugarQueryable Where(string expShortName, FormattableString expressionString); 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 Where(List conditionalModels, bool isWrap); new ISugarQueryable Where(IFuncModel funcModel); 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); /// /// if a property that is not empty is a condition /// /// /// new ISugarQueryable WhereClass(ClassType whereClass, bool ignoreDefaultValue = false) where ClassType : class, new(); /// /// if a property that is not empty is a condition /// /// /// new ISugarQueryable WhereClass(List whereClassList, bool ignoreDefaultValue = false) where ClassType : class, new(); #endregion #region Select ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression); ISugarQueryable Select(Expression> expression, bool isAutoFill); #endregion #region OrderBy new ISugarQueryable OrderBy(List models); new ISugarQueryable OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); new ISugarQueryable OrderBy(string orderByFields); 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 orderByFields); 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 GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); new ISugarQueryable GroupByIF(bool isGroupBy, string groupFields); new ISugarQueryable GroupBy(Expression> expression); 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); ISugarQueryable Having(Expression> expression); new ISugarQueryable Having(string whereString, object parameters = null); new ISugarQueryable HavingIF(bool isHaving, Expression> expression); ISugarQueryable HavingIF(bool isHaving, Expression> expression); ISugarQueryable HavingIF(bool isHaving, Expression> expression); ISugarQueryable HavingIF(bool isHaving, Expression> expression); ISugarQueryable HavingIF(bool isHaving, 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 Take(int num); new ISugarQueryable Clone(); new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable ClearFilter(); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable ClearFilter(params Type[] types); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); 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); new ISugarQueryable Distinct(); bool Any(Expression> expression); #endregion } public partial interface ISugarQueryable : ISugarQueryable { new ISugarQueryable Hints(string hints); ISugarQueryable SelectMergeTable(Expression> expression); ISugarQueryable LeftJoinIF(bool isLeftJoin, Expression> joinExpression); ISugarQueryable InnerJoinIF(bool isJoin, Expression> joinExpression); ISugarQueryable LeftJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable InnerJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable RightJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression); ISugarQueryable FullJoin(Expression> joinExpression); ISugarQueryable InnerJoin(Expression> joinExpression); ISugarQueryable RightJoin(Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression,string tableName); ISugarQueryable FullJoin(Expression> joinExpression, string tableName); ISugarQueryable InnerJoin(Expression> joinExpression, string tableName); ISugarQueryable RightJoin(Expression> joinExpression, string tableName); #region Where new ISugarQueryable Where(string expShortName, FormattableString expressionString); 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 Where(List conditionalModels, bool isWrap); new ISugarQueryable Where(IFuncModel funcModel); 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); /// /// if a property that is not empty is a condition /// /// /// new ISugarQueryable WhereClass(ClassType whereClass, bool ignoreDefaultValue = false) where ClassType : class, new(); /// /// if a property that is not empty is a condition /// /// /// new ISugarQueryable WhereClass(List whereClassList, bool ignoreDefaultValue = false) where ClassType : class, new(); #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, bool isAutoFill); #endregion #region OrderBy new ISugarQueryable OrderBy(List models); new ISugarQueryable OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); new ISugarQueryable OrderBy(string orderByFields); 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); new ISugarQueryable OrderByIF(bool isOrderBy, string orderByFields); 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); ISugarQueryable OrderByIF(bool isOrderBy, Expression> expression, OrderByType type = OrderByType.Asc); #endregion #region GroupBy new ISugarQueryable GroupByIF(bool isGroupBy, string groupFields); new ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); 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); new ISugarQueryable Having(Expression> expression); ISugarQueryable Having(Expression> expression); ISugarQueryable Having(Expression> expression); ISugarQueryable Having(Expression> expression); ISugarQueryable Having(Expression> expression); ISugarQueryable Having(Expression> expression); new ISugarQueryable Having(string whereString, object parameters = null); new ISugarQueryable HavingIF(bool isHaving, Expression> expression); ISugarQueryable HavingIF(bool isHaving, Expression> expression); ISugarQueryable HavingIF(bool isHaving, Expression> expression); ISugarQueryable HavingIF(bool isHaving, Expression> expression); ISugarQueryable HavingIF(bool isHaving, Expression> expression); ISugarQueryable HavingIF(bool isHaving, 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 Take(int num); new ISugarQueryable Clone(); new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable ClearFilter(); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable ClearFilter(params Type[] types); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); 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); new ISugarQueryable Distinct(); bool Any(Expression> expression); #endregion } public partial interface ISugarQueryable : ISugarQueryable { new ISugarQueryable Hints(string hints); ISugarQueryable SelectMergeTable(Expression> expression); ISugarQueryable LeftJoinIF(bool isLeftJoin, Expression> joinExpression); ISugarQueryable InnerJoinIF(bool isJoin, Expression> joinExpression); ISugarQueryable LeftJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable InnerJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable RightJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression); ISugarQueryable FullJoin(Expression> joinExpression); ISugarQueryable InnerJoin(Expression> joinExpression); ISugarQueryable RightJoin(Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression,string tableName); ISugarQueryable FullJoin(Expression> joinExpression, string tableName); ISugarQueryable InnerJoin(Expression> joinExpression, string tableName); ISugarQueryable RightJoin(Expression> joinExpression, string tableName); #region Where new ISugarQueryable Where(string expShortName, FormattableString expressionString); 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 Where(List conditionalModels, bool isWrap); 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); /// /// if a property that is not empty is a condition /// /// /// new ISugarQueryable WhereClass(ClassType whereClass, bool ignoreDefaultValue = false) where ClassType : class, new(); /// /// if a property that is not empty is a condition /// /// /// new ISugarQueryable WhereClass(List whereClassList, bool ignoreDefaultValue = false) where ClassType : class, new(); #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, bool isAutoFill); #endregion #region OrderBy new ISugarQueryable OrderBy(List models); new ISugarQueryable OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); new ISugarQueryable OrderBy(string orderByFields); 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); new ISugarQueryable OrderByIF(bool isOrderBy, string orderByFields); 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); 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 GroupByIF(bool isGroupBy, string groupFields); new ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); ISugarQueryable GroupByIF(bool isGroupBy, Expression> expression); 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 Take(int num); new ISugarQueryable Clone(); new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable ClearFilter(); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable ClearFilter(params Type[] types); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); 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); new ISugarQueryable Distinct(); bool Any(Expression> expression); #endregion } public partial interface ISugarQueryable : ISugarQueryable { new ISugarQueryable Hints(string hints); ISugarQueryable SelectMergeTable(Expression> expression); ISugarQueryable LeftJoinIF(bool isLeftJoin, Expression> joinExpression); ISugarQueryable InnerJoinIF(bool isJoin, Expression> joinExpression); ISugarQueryable LeftJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable InnerJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable RightJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression); ISugarQueryable FullJoin(Expression> joinExpression); ISugarQueryable InnerJoin(Expression> joinExpression); ISugarQueryable RightJoin(Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression,string tableName); ISugarQueryable FullJoin(Expression> joinExpression, string tableName); ISugarQueryable InnerJoin(Expression> joinExpression, string tableName); ISugarQueryable RightJoin(Expression> joinExpression, string tableName); #region Where new ISugarQueryable Where(string expShortName, FormattableString expressionString); 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 Where(List conditionalModels, bool isWrap); 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); /// /// if a property that is not empty is a condition /// /// /// new ISugarQueryable WhereClass(ClassType whereClass, bool ignoreDefaultValue = false) where ClassType : class, new(); /// /// if a property that is not empty is a condition /// /// /// new ISugarQueryable WhereClass(List whereClassList, bool ignoreDefaultValue = false) where ClassType : class, new(); #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, bool isAutoFill); #endregion #region OrderBy new ISugarQueryable OrderBy(List models); new ISugarQueryable OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); new ISugarQueryable OrderBy(string orderByFields); 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); new ISugarQueryable OrderByIF(bool isOrderBy, string orderByFields); 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); 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); 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 Take(int num); new ISugarQueryable Clone(); new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable ClearFilter(); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable ClearFilter(params Type[] types); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); 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); new ISugarQueryable Distinct(); bool Any(Expression> expression); #endregion } #region 9-12 public partial interface ISugarQueryable : ISugarQueryable { new ISugarQueryable Hints(string hints); ISugarQueryable SelectMergeTable(Expression> expression); ISugarQueryable LeftJoinIF(bool isLeftJoin, Expression> joinExpression); ISugarQueryable InnerJoinIF(bool isJoin, Expression> joinExpression); ISugarQueryable LeftJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable InnerJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable RightJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression); ISugarQueryable FullJoin(Expression> joinExpression); ISugarQueryable InnerJoin(Expression> joinExpression); ISugarQueryable RightJoin(Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression,string tableName); ISugarQueryable FullJoin(Expression> joinExpression,string tableName); ISugarQueryable InnerJoin(Expression> joinExpression,string tableName); ISugarQueryable RightJoin(Expression> joinExpression,string tableName); #region Where new ISugarQueryable Where(string expShortName, FormattableString expressionString); 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 Where(List conditionalModels, bool isWrap); 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); ISugarQueryable Select(Expression> expression, bool isAutoFill); #endregion #region OrderBy new ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); new ISugarQueryable OrderBy(List models); new ISugarQueryable OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderBy(string orderByFields); 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); 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); 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); 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 Distinct(); new ISugarQueryable Take(int num); new ISugarQueryable Clone(); new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable ClearFilter(); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable ClearFilter(params Type[] types); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); 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 { new ISugarQueryable Hints(string hints); ISugarQueryable SelectMergeTable(Expression> expression); ISugarQueryable LeftJoinIF(bool isLeftJoin, Expression> joinExpression); ISugarQueryable InnerJoinIF(bool isJoin, Expression> joinExpression); ISugarQueryable LeftJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable InnerJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable RightJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression); ISugarQueryable FullJoin(Expression> joinExpression); ISugarQueryable InnerJoin(Expression> joinExpression); ISugarQueryable RightJoin(Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression,string tableName); ISugarQueryable FullJoin(Expression> joinExpression, string tableName); ISugarQueryable InnerJoin(Expression> joinExpression, string tableName); ISugarQueryable RightJoin(Expression> joinExpression, string tableName); #region Where new ISugarQueryable Where(string expShortName, FormattableString expressionString); 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 Where(List conditionalModels, bool isWrap); 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); ISugarQueryable Select(Expression> expression, bool isAutoFill); #endregion #region OrderBy new ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); ISugarQueryable OrderByDescending(Expression> expression); new ISugarQueryable OrderBy(List models); new ISugarQueryable OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderBy(string orderByFields); 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); 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); 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); 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 Distinct(); new ISugarQueryable Take(int num); new ISugarQueryable Clone(); new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable ClearFilter(); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable ClearFilter(params Type[] types); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); 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 { new ISugarQueryable Hints(string hints); ISugarQueryable SelectMergeTable(Expression> expression); ISugarQueryable LeftJoinIF(bool isLeftJoin, Expression> joinExpression); ISugarQueryable InnerJoinIF(bool isJoin, Expression> joinExpression); ISugarQueryable LeftJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable InnerJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable RightJoin(ISugarQueryable joinQueryable, Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression); ISugarQueryable FullJoin(Expression> joinExpression); ISugarQueryable InnerJoin(Expression> joinExpression); ISugarQueryable RightJoin(Expression> joinExpression); ISugarQueryable LeftJoin(Expression> joinExpression,string tableName); ISugarQueryable FullJoin(Expression> joinExpression, string tableName); ISugarQueryable InnerJoin(Expression> joinExpression, string tableName); ISugarQueryable RightJoin(Expression> joinExpression, string tableName); #region Where new ISugarQueryable Where(string expShortName, FormattableString expressionString); 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 Where(List conditionalModels, bool isWrap); 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); ISugarQueryable Select(Expression> expression, bool isAutoFill); #endregion #region OrderBy new ISugarQueryable OrderBy(List models); new ISugarQueryable OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderBy(string orderByFields); 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); 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); 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); 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); 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 Distinct(); new ISugarQueryable Take(int num); new ISugarQueryable Clone(); new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable ClearFilter(); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable ClearFilter(params Type[] types); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); 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 { new ISugarQueryable Hints(string hints); ISugarQueryable SelectMergeTable(Expression> expression); #region Where new ISugarQueryable Where(string expShortName, FormattableString expressionString); 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 Where(List conditionalModels, bool isWrap); 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); ISugarQueryable Select(Expression> expression, bool isAutoFill); #endregion #region OrderBy new ISugarQueryable OrderBy(List models); new ISugarQueryable OrderByPropertyNameIF(bool isOrderBy, string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderByPropertyName(string orderPropertyName, OrderByType? orderByType = null); new ISugarQueryable OrderBy(string orderByFields); 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); 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); 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); 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); 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 Distinct(); new ISugarQueryable Take(int num); new ISugarQueryable Clone(); new ISugarQueryable AS(string tableName); new ISugarQueryable AS(string tableName); new ISugarQueryable ClearFilter(); new ISugarQueryable Filter(string FilterName, bool isDisabledGobalFilter = false); new ISugarQueryable ClearFilter(params Type[] types); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); new ISugarQueryable ClearFilter(); 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 }