Browse Source

Update InsertNav many to many

pull/25/head
sunkaixuan 2 years ago
parent
commit
82a35bd8b5
  1. 4
      Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/InsertNavProviderManyToMany.cs

4
Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/InsertNavProviderManyToMany.cs

@ -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);

Loading…
Cancel
Save