Browse Source

Performance optimization

pull/18/MERGE
sunkaixuan 3 years ago
parent
commit
ab8d7d4e5c
  1. 8
      Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/NavigatManager.cs

8
Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/NavigatManager.cs

@ -357,6 +357,14 @@ namespace SqlSugar
navObjectNamePropety.SetValue(item.Key, instance);
}
}
foreach (var item in list)
{
if (navObjectNamePropety.GetValue(item) == null)
{
var instance = Activator.CreateInstance(navObjectNamePropety.PropertyType, true);
navObjectNamePropety.SetValue(item, instance);
}
}
}
}
}

Loading…
Cancel
Save