mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update nav query dto
This commit is contained in:
parent
3a99cd8576
commit
8c7c7522cf
@ -721,6 +721,7 @@ namespace SqlSugar
|
||||
{
|
||||
if (result.Any())
|
||||
{
|
||||
IList outList = null;
|
||||
foreach (var it in managers)
|
||||
{
|
||||
var manager = it;
|
||||
@ -732,7 +733,14 @@ namespace SqlSugar
|
||||
.Where(a => this.QueryBuilder.AppendNavInfo.Result.First().result.ContainsKey("SugarNav_" + a.PropertyName))
|
||||
.ToList();
|
||||
var listType = typeof(List<>).MakeGenericType(tType);
|
||||
var outList = SelectNavQuery_SetList(result, it, p, tType, columns, listType);
|
||||
if (outList == null)
|
||||
{
|
||||
outList = SelectNavQuery_SetList(result, it, p, tType, columns, listType);
|
||||
}
|
||||
else
|
||||
{
|
||||
p.SetValue(it, outList);
|
||||
}
|
||||
it.GetType().GetMethod("Execute").Invoke(it, null);
|
||||
SelectNavQuery_MappingList(it, result, outList, allColumns.Where(a => a.Navigat != null).ToList());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user