mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update insertNav
This commit is contained in:
parent
9e7ca46fda
commit
44bcb6fa2e
@ -31,6 +31,14 @@ namespace SqlSugar
|
||||
{
|
||||
navPropertyValue = pkValue;
|
||||
}
|
||||
|
||||
}
|
||||
if (!IsDefaultValue(navPropertyValue))
|
||||
{
|
||||
this._Context.Updateable<DbTableInfo>
|
||||
().AS(parentEntity.DbTableName)
|
||||
.SetColumns(parentColumn.DbColumnName, navPropertyValue)
|
||||
.Where(parentPkColumn.DbColumnName, "=", parentPkColumn.PropertyInfo.GetValue(parent)).ExecuteCommand();
|
||||
}
|
||||
if (IsDefaultValue(navPropertyValue))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user