mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 10:38:09 +08:00
Synchronization code
This commit is contained in:
@@ -333,7 +333,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
l,
|
l,
|
||||||
n
|
n
|
||||||
}).GroupBy(it=>it.l).ToList();
|
}).GroupBy(it => it.l).ToList();
|
||||||
foreach (var item in GroupQuery)
|
foreach (var item in GroupQuery)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -343,7 +343,7 @@ namespace SqlSugar
|
|||||||
helper.NavEntity = navEntityInfo;
|
helper.NavEntity = navEntityInfo;
|
||||||
helper.Context = this.Context;
|
helper.Context = this.Context;
|
||||||
helper.RootEntity = this.Context.EntityMaintenance.GetEntityInfo<T>();
|
helper.RootEntity = this.Context.EntityMaintenance.GetEntityInfo<T>();
|
||||||
helper.SetChildList(navObjectNameColumnInfo, item.Key,item.Select(it=>it.n).ToList(),sqlObj.MappingExpressions);
|
helper.SetChildList(navObjectNameColumnInfo, item.Key, item.Select(it => it.n).ToList(), sqlObj.MappingExpressions);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -366,6 +366,15 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//No navigation data set new List()
|
||||||
|
foreach (var item in list)
|
||||||
|
{
|
||||||
|
var instance = Activator.CreateInstance(navObjectNamePropety.PropertyType, true);
|
||||||
|
navObjectNamePropety.SetValue(item, instance);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user