Browse Source

Update .net core project

SqlSugar5
sunkaixuan 2 years ago
parent
commit
7cec1adf0e
  1. 5
      Src/Asp.NetCore2/SqlSugar/Abstract/SugarProvider/SqlSugarProvider.cs
  2. 2
      Src/Asp.NetCore2/SqlSugar/Abstract/SugarProvider/SqlSugarScopeProvider.cs
  3. 2
      Src/Asp.NetCore2/SqlSugar/Interface/ISqlSugarClient.cs
  4. 2
      Src/Asp.NetCore2/SqlSugar/SqlSugarClient.cs
  5. 2
      Src/Asp.NetCore2/SqlSugar/SqlSugarScope.cs

5
Src/Asp.NetCore2/SqlSugar/Abstract/SugarProvider/SqlSugarProvider.cs

@ -407,10 +407,11 @@ namespace SqlSugar
queryable.Where(joinExpression);
return queryable;
}
public virtual ISugarQueryable<T> Queryable<T>(ISugarQueryable<T> queryable) where T : class, new()
public virtual ISugarQueryable<T> Queryable<T>(ISugarQueryable<T> queryable)
{
var sqlobj = queryable.ToSql();
var result = this.SqlQueryable<T>(sqlobj.Key).AddParameters(sqlobj.Value);
var newQueryable = this.SqlQueryable<object>(sqlobj.Key).AddParameters(sqlobj.Value);
var result = newQueryable.Select<T>(newQueryable.QueryBuilder.SelectValue+"");
result.QueryBuilder.IsSqlQuery = false;
return result;
}

2
Src/Asp.NetCore2/SqlSugar/Abstract/SugarProvider/SqlSugarScopeProvider.cs

@ -454,7 +454,7 @@ namespace SqlSugar
return ScopedContext.Queryable<T>();
}
public ISugarQueryable<T> Queryable<T>(ISugarQueryable<T> queryable) where T : class, new()
public ISugarQueryable<T> Queryable<T>(ISugarQueryable<T> queryable)
{
return ScopedContext.Queryable(queryable);
}

2
Src/Asp.NetCore2/SqlSugar/Interface/ISqlSugarClient.cs

@ -131,7 +131,7 @@ namespace SqlSugar
where T3 : class, new()
where T4 : class, new();
ISugarQueryable<T> Queryable<T>();
ISugarQueryable<T> Queryable<T>(ISugarQueryable<T> queryable) where T : class, new();
ISugarQueryable<T> Queryable<T>(ISugarQueryable<T> queryable);
ISugarQueryable<T> Queryable<T>(string shortName);
#endregion

2
Src/Asp.NetCore2/SqlSugar/SqlSugarClient.cs

@ -429,7 +429,7 @@ namespace SqlSugar
return this.Context.Queryable<T>();
}
public ISugarQueryable<T> Queryable<T>(ISugarQueryable<T> queryable) where T : class, new()
public ISugarQueryable<T> Queryable<T>(ISugarQueryable<T> queryable)
{
var result= this.Context.Queryable<T>(queryable);

2
Src/Asp.NetCore2/SqlSugar/SqlSugarScope.cs

@ -440,7 +440,7 @@ namespace SqlSugar
return ScopedContext.Queryable<T>();
}
public ISugarQueryable<T> Queryable<T>(ISugarQueryable<T> queryable) where T : class, new()
public ISugarQueryable<T> Queryable<T>(ISugarQueryable<T> queryable)
{
return ScopedContext.Queryable(queryable);
}

Loading…
Cancel
Save