mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
commit
ebb6ef36a1
@ -207,7 +207,11 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
method = getConvertValueMethod.MakeGenericMethod(columnInfo.PropertyInfo.PropertyType);
|
method = getConvertValueMethod.MakeGenericMethod(columnInfo.PropertyInfo.PropertyType);
|
||||||
}
|
}
|
||||||
generator.Emit(OpCodes.Call, method);
|
|
||||||
|
if (method.IsVirtual)
|
||||||
|
generator.Emit(OpCodes.Callvirt, method);
|
||||||
|
else
|
||||||
|
generator.Emit(OpCodes.Call, method);
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
#endregion
|
#endregion
|
||||||
@ -313,7 +317,10 @@ namespace SqlSugar
|
|||||||
if (method == null)
|
if (method == null)
|
||||||
method = isNullableType ? getOtherNull.MakeGenericMethod(bindPropertyType) : getOther.MakeGenericMethod(bindPropertyType);
|
method = isNullableType ? getOtherNull.MakeGenericMethod(bindPropertyType) : getOther.MakeGenericMethod(bindPropertyType);
|
||||||
|
|
||||||
generator.Emit(OpCodes.Call, method);
|
if (method.IsVirtual)
|
||||||
|
generator.Emit(OpCodes.Callvirt, method);
|
||||||
|
else
|
||||||
|
generator.Emit(OpCodes.Call, method);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user