Browse Source

Remove CrossQueryWithAttr

SqlSugar5
sunkaixuan 2 years ago
parent
commit
1e12b762f6
  1. 10
      Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs
  2. 2
      Src/Asp.Net/SqlSugar/Interface/IQueryable.cs
  3. 4
      Src/Asp.Net/SqlSugar/SqlSugarClient.cs

10
Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs

@ -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);

2
Src/Asp.Net/SqlSugar/Interface/IQueryable.cs

@ -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);

4
Src/Asp.Net/SqlSugar/SqlSugarClient.cs

@ -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()
{

Loading…
Cancel
Save