mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
Update subInsert
This commit is contained in:
@@ -125,6 +125,7 @@ namespace SqlSugar
|
|||||||
if (isIdEntity)
|
if (isIdEntity)
|
||||||
{
|
{
|
||||||
id = this.Context.Insertable(InsertObject).ExecuteReturnIdentity();
|
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);
|
var pk = GetPrimaryKey(this.Entity, InsertObject, id);
|
||||||
AddChildList(this.SubList, InsertObject, pk);
|
AddChildList(this.SubList, InsertObject, pk);
|
||||||
|
Reference in New Issue
Block a user