mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Performance optimization
This commit is contained in:
parent
7272e9cc1d
commit
ab8d7d4e5c
@ -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…
Reference in New Issue
Block a user