Synchronization code

This commit is contained in:
sunkaixuan
2022-11-11 11:07:05 +08:00
parent 3d10ebcb17
commit 2b26f7e0f6
2 changed files with 5 additions and 1 deletions

View File

@@ -38,6 +38,10 @@ namespace SqlSugar
foreach (var item in parentList)
{
var items= parentNavigateProperty.PropertyInfo.GetValue(item);
if (items == null)
{
continue;
}
var children=((List<TChild>)items);
InsertDatas(children, thisPkColumn);
var parentId = parentPkColumn.PropertyInfo.GetValue(item);

View File

@@ -464,7 +464,7 @@ namespace SqlSugar
it.PropertyName.EqualCase(verColumn.PropertyName));
if (data == null)
{
data = new DbColumnInfo() { DbColumnName= verColumn.DbColumnName, Value=newValue };
data = new DbColumnInfo() { DbColumnName= verColumn.DbColumnName,PropertyName=verColumn.PropertyName, Value=newValue };
this.UpdateBuilder.DbColumnInfoList.Add(data);
}
data.Value = newValue;