diff --git a/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs b/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs index 3f942162d..3d0b161af 100644 --- a/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs +++ b/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs @@ -152,31 +152,6 @@ namespace SqlSugar QueryBuilder.Parameters.AddRange(Context.Ado.GetParameters(whereObj)); return this; } - public ISugarQueryable Where(Expression> expression) - { - this._Where(expression); - return this; - } - public ISugarQueryable Where(Expression> expression) - { - this._Where(expression); - return this; - } - public ISugarQueryable Where(Expression> expression) - { - this._Where(expression); - return this; - } - public ISugarQueryable Where(Expression> expression) - { - this._Where(expression); - return this; - } - public ISugarQueryable Where(Expression> expression) - { - this._Where(expression); - return this; - } public ISugarQueryable Having(Expression> expression) { @@ -220,7 +195,7 @@ namespace SqlSugar public virtual ISugarQueryable WhereIF(bool isWhere, Expression> expression) { if (!isWhere) return this; - Where(expression); + _Where(expression); return this; } public ISugarQueryable WhereIF(bool isWhere, string whereString, object whereObj = null) @@ -229,43 +204,6 @@ namespace SqlSugar this.Where(whereString, whereObj); return this; } - public ISugarQueryable WhereIF(bool isWhere, string whereString, object whereObj = null) - { - if (!isWhere) return this; - this.Where(whereString, whereObj); - return this; - } - public ISugarQueryable WhereIF(bool isWhere, Expression> expression) - { - if (!isWhere) return this; - this.Where(expression); - return this; - } - public ISugarQueryable WhereIF(bool isWhere, Expression> expression) - { - if (!isWhere) return this; - this.Where(expression); - return this; - } - public ISugarQueryable WhereIF(bool isWhere, Expression> expression) - { - if (!isWhere) return this; - this.Where(expression); - return this; - } - public ISugarQueryable WhereIF(bool isWhere, Expression> expression) - { - if (!isWhere) return this; - this.Where(expression); - return this; - } - public ISugarQueryable WhereIF(bool isWhere, Expression> expression) - { - if (!isWhere) return this; - this.Where(expression); - return this; - } - public ISugarQueryable In(params object[] pkValues) { if (pkValues == null || pkValues.Length == 0) @@ -354,32 +292,12 @@ namespace SqlSugar return this; } - public ISugarQueryable OrderBy(Expression> expression, OrderByType type = OrderByType.Asc) - { - this._OrderBy(expression, type); - var reval = InstanceFactory.GetQueryable(this.Context.CurrentConnectionConfig); - reval.Context = this.Context; - reval.SqlBuilder = this.SqlBuilder; - reval.SqlBuilder.QueryBuilder.Parameters = QueryBuilder.Parameters; - reval.SqlBuilder.QueryBuilder.SelectValue = expression; - return reval; - } - public ISugarQueryable GroupBy(Expression> expression) { _GroupBy(expression); return this; } - public ISugarQueryable GroupBy(Expression> expression) - { - _GroupBy(expression); - var reval = InstanceFactory.GetQueryable(this.Context.CurrentConnectionConfig); - reval.Context = this.Context; - reval.SqlBuilder = this.SqlBuilder; - reval.SqlBuilder.QueryBuilder.Parameters = QueryBuilder.Parameters; - reval.SqlBuilder.QueryBuilder.SelectValue = expression; - return reval; - } + public ISugarQueryable GroupBy(string groupFileds) { var croupByValue = QueryBuilder.GroupByValue;