mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
Update unit test
This commit is contained in:
@@ -33,6 +33,12 @@ namespace SqlSugar
|
|||||||
var pkValue = thisPkColumn.PropertyInfo.GetValue(childItem);
|
var pkValue = thisPkColumn.PropertyInfo.GetValue(childItem);
|
||||||
if (IsDefaultValue(navPropertyValue))
|
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;
|
navPropertyValue = pkValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user