mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-24 04:53:45 +08:00
Performance optimization
This commit is contained in:
@@ -357,6 +357,14 @@ namespace SqlSugar
|
|||||||
navObjectNamePropety.SetValue(item.Key, instance);
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user