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