mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Error reported in reverse navigation one to one insert
This commit is contained in:
@@ -33,7 +33,7 @@ namespace SqlSugar
|
||||
}
|
||||
|
||||
}
|
||||
if (!IsDefaultValue(navPropertyValue))
|
||||
if (!IsDefaultValue(navPropertyValue)&& parentColumn.IsPrimarykey==false)
|
||||
{
|
||||
this._Context.Updateable<DbTableInfo>
|
||||
().AS(parentEntity.DbTableName)
|
||||
|
Reference in New Issue
Block a user