Browse Source

Update db.UpdateNav

pull/23/head
sunkaixuan 2 years ago
parent
commit
901d1e75db
  1. 4
      Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/UpdateNavManyToMany.cs

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

@ -39,6 +39,10 @@ namespace SqlSugar
foreach (var item in parentList)
{
var items = parentNavigateProperty.PropertyInfo.GetValue(item);
if (items == null)
{
continue;
}
var children = ((List<TChild>)items);
if (this._Options != null && this._Options.ManyToManyIsUpdateB)
{

Loading…
Cancel
Save