mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-20 00:44:19 +08:00
Nav query+Subquery.ToList()
This commit is contained in:
parent
b26fbc6073
commit
4c67b89a07
@ -2410,8 +2410,17 @@ namespace SqlSugar
|
||||
new QueryableAppendColumn(){ Name="sugarIndex",AsName="sugarIndex" }
|
||||
};
|
||||
this.QueryBuilder.AppendValues = null;
|
||||
var isNavQuery = this.QueryBuilder.Includes != null;
|
||||
if (isNavQuery)
|
||||
{
|
||||
this.Context.Ado.DbBind.QueryBuilder.AppendColumns = this.QueryBuilder.AppendColumns;
|
||||
}
|
||||
var subList = ExpressionBuilderHelper.CallFunc(callType, methodParamters, this.Clone(), "SubQueryList");
|
||||
var appendValue = this.QueryBuilder.AppendValues;
|
||||
if (isNavQuery)
|
||||
{
|
||||
appendValue = this.Context.Ado.DbBind.QueryBuilder.AppendValues;
|
||||
}
|
||||
var list = (subList as IEnumerable).Cast<object>().ToList();
|
||||
if (isFirst && !typeof(TResult).IsAnonymousType())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user