mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
new 重新属性的反射优化
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user