diff --git a/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs b/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs index ff6635ad5..9425a273d 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs @@ -46,11 +46,11 @@ namespace SqlSugar return this.Context.EntityMaintenance.GetEntityInfo(); } } - public ISugarQueryable CrossQueryWithAttr() - { - this.QueryBuilder.IsCrossQueryWithAttr = true; - return this; - } + //public ISugarQueryable CrossQueryWithAttr() + //{ + // this.QueryBuilder.IsCrossQueryWithAttr = true; + // return this; + //} public ISugarQueryable CrossQuery(string configId) { return this.CrossQuery(typeof(Type),configId); diff --git a/Src/Asp.Net/SqlSugar/Interface/IQueryable.cs b/Src/Asp.Net/SqlSugar/Interface/IQueryable.cs index d887fe7e8..40ee0c22c 100644 --- a/Src/Asp.Net/SqlSugar/Interface/IQueryable.cs +++ b/Src/Asp.Net/SqlSugar/Interface/IQueryable.cs @@ -19,7 +19,7 @@ namespace SqlSugar ISugarQueryable AS(string tableName); ISugarQueryable AS(string tableName); ISugarQueryable With(string withString); - ISugarQueryable CrossQueryWithAttr(); + //ISugarQueryable CrossQueryWithAttr(); ISugarQueryable CrossQuery(string configId); ISugarQueryable CrossQuery(Type type ,string configId); ISugarQueryable IncludeLeftJoin(Expression> LeftObject); diff --git a/Src/Asp.Net/SqlSugar/SqlSugarClient.cs b/Src/Asp.Net/SqlSugar/SqlSugarClient.cs index 94b082c54..84fbc5ba9 100644 --- a/Src/Asp.Net/SqlSugar/SqlSugarClient.cs +++ b/Src/Asp.Net/SqlSugar/SqlSugarClient.cs @@ -1307,7 +1307,9 @@ namespace SqlSugar #region Tenant Crud public ISugarQueryable QueryableWithAttr() { - return this.GetConnectionWithAttr().Queryable(); + var result= this.GetConnectionWithAttr().Queryable(); + result.QueryBuilder.IsCrossQueryWithAttr= true; + return result; } public IInsertable InsertableWithAttr(T insertObj) where T : class, new() {