mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update Queryable(Queryable)
This commit is contained in:
parent
47c9925634
commit
cea101d556
@ -432,10 +432,12 @@ namespace SqlSugar
|
||||
public virtual ISugarQueryable<T> Queryable<T>(ISugarQueryable<T> queryable)
|
||||
{
|
||||
var sqlobj = queryable.ToSql();
|
||||
var QueryBuilder = queryable.QueryBuilder;
|
||||
var newQueryable = this.SqlQueryable<object>(sqlobj.Key).AddParameters(sqlobj.Value);
|
||||
var result = newQueryable.Select<T>(newQueryable.QueryBuilder.SelectValue+"");
|
||||
result.QueryBuilder.IsSqlQuery = false;
|
||||
result.QueryBuilder.NoCheckInclude = true;
|
||||
result.QueryBuilder.WhereIndex = (QueryBuilder.WhereIndex + 1);
|
||||
result.QueryBuilder.Includes = queryable.QueryBuilder.Includes?.ToList();
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user