mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update subInsert
This commit is contained in:
parent
e745aede4f
commit
25bc0d4d9f
@ -125,6 +125,7 @@ namespace SqlSugar
|
||||
if (isIdEntity)
|
||||
{
|
||||
id = this.Context.Insertable(InsertObject).ExecuteReturnIdentity();
|
||||
this.Entity.Columns.First(it => it.IsIdentity || it.OracleSequenceName.HasValue()).PropertyInfo.SetValue(InsertObject, id);
|
||||
}
|
||||
var pk = GetPrimaryKey(this.Entity, InsertObject, id);
|
||||
AddChildList(this.SubList, InsertObject, pk);
|
||||
|
Loading…
Reference in New Issue
Block a user