mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Synchronization code
This commit is contained in:
@@ -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);
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user