Remove CrossQueryWithAttr

This commit is contained in:
sunkaixuan 2022-10-05 10:12:17 +08:00
parent 4e832ed484
commit 1e12b762f6
3 changed files with 9 additions and 7 deletions

View File

@ -46,11 +46,11 @@ namespace SqlSugar
return this.Context.EntityMaintenance.GetEntityInfo<T>();
}
}
public ISugarQueryable<T> CrossQueryWithAttr()
{
this.QueryBuilder.IsCrossQueryWithAttr = true;
return this;
}
//public ISugarQueryable<T> CrossQueryWithAttr()
//{
// this.QueryBuilder.IsCrossQueryWithAttr = true;
// return this;
//}
public ISugarQueryable<T> CrossQuery<Type>(string configId)
{
return this.CrossQuery(typeof(Type),configId);

View File

@ -19,7 +19,7 @@ namespace SqlSugar
ISugarQueryable<T> AS<T2>(string tableName);
ISugarQueryable<T> AS(string tableName);
ISugarQueryable<T> With(string withString);
ISugarQueryable<T> CrossQueryWithAttr();
//ISugarQueryable<T> CrossQueryWithAttr();
ISugarQueryable<T> CrossQuery<Type>(string configId);
ISugarQueryable<T> CrossQuery(Type type ,string configId);
ISugarQueryable<T> IncludeLeftJoin(Expression<Func<T, object>> LeftObject);

View File

@ -1307,7 +1307,9 @@ namespace SqlSugar
#region Tenant Crud
public ISugarQueryable<T> QueryableWithAttr<T>()
{
return this.GetConnectionWithAttr<T>().Queryable<T>();
var result= this.GetConnectionWithAttr<T>().Queryable<T>();
result.QueryBuilder.IsCrossQueryWithAttr= true;
return result;
}
public IInsertable<T> InsertableWithAttr<T>(T insertObj) where T : class, new()
{