mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 09:44:39 +08:00
Update unit test
This commit is contained in:
@@ -33,6 +33,12 @@ namespace SqlSugar
|
||||
var pkValue = thisPkColumn.PropertyInfo.GetValue(childItem);
|
||||
if (IsDefaultValue(navPropertyValue))
|
||||
{
|
||||
if (parentColumn.IsPrimarykey==false&&isManyPk == false && parentColumn.IsIdentity == false)
|
||||
{
|
||||
this._Context.Updateable<DbTableInfo>().AS(parentEntity.DbTableName)
|
||||
.SetColumns(parentColumn.DbColumnName, pkValue)
|
||||
.Where(parentPkColumn.DbColumnName, "=", parentPkColumn.PropertyInfo.GetValue(parent)).ExecuteCommand();
|
||||
}
|
||||
navPropertyValue = pkValue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user