mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-26 14:15:50 +08:00
SubInsert ChildList.Count==0 bug
This commit is contained in:
@@ -166,6 +166,10 @@ namespace SqlSugar
|
||||
child.GetType().GetProperty(subMemberName).SetValue(child, pkValue);
|
||||
}
|
||||
}
|
||||
if (!(childList as IEnumerable<object>).Any())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
var type = (childList as IEnumerable<object>).First().GetType();
|
||||
this.Context.InitMappingInfo(type);
|
||||
var entityInfo = this.Context.EntityMaintenance.GetEntityInfo(type);
|
||||
|
||||
Reference in New Issue
Block a user