Browse Source

-

SqlSugar5
sunkaixuan 2 years ago
parent
commit
f9dcda6ade
  1. 3
      Src/Asp.Net/SqlSugar/Abstract/SugarProvider/SqlSugarProvider.cs

3
Src/Asp.Net/SqlSugar/Abstract/SugarProvider/SqlSugarProvider.cs

@ -410,7 +410,8 @@ namespace SqlSugar
public virtual ISugarQueryable<T> Queryable<T>(ISugarQueryable<T> queryable) public virtual ISugarQueryable<T> Queryable<T>(ISugarQueryable<T> queryable)
{ {
var sqlobj = queryable.ToSql(); var sqlobj = queryable.ToSql();
var result = this.SqlQueryable<object>(sqlobj.Key).AddParameters(sqlobj.Value).Select<T>("*"); string selector = null;
var result = this.SqlQueryable<object>(sqlobj.Key).AddParameters(sqlobj.Value).Select<T>(selector);
result.QueryBuilder.IsSqlQuery = false; result.QueryBuilder.IsSqlQuery = false;
return result; return result;
} }

Loading…
Cancel
Save