mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-26 22:25:49 +08:00
Update insertNav
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user