mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
new 重新属性的反射优化
This commit is contained in:
parent
8a9a50ecb7
commit
08bd86ae40
@ -84,7 +84,7 @@ namespace FreeSql.Internal
|
||||
{
|
||||
if (common.CodeFirst.IsLazyLoading)
|
||||
{
|
||||
var getIsVirtual = trytb.Type.GetMethod($"get_{p.Name}")?.IsVirtual;
|
||||
var getIsVirtual = p.GetGetMethod()?.IsVirtual;// trytb.Type.GetMethod($"get_{p.Name}")?.IsVirtual;
|
||||
var setIsVirtual = setMethod?.IsVirtual;
|
||||
if (getIsVirtual == true || setIsVirtual == true)
|
||||
propsLazy.Add((p, getIsVirtual == true, setIsVirtual == true));
|
||||
|
Loading…
x
Reference in New Issue
Block a user