mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Support Object
This commit is contained in:
parent
89f1b4e174
commit
330638f5e1
@ -128,7 +128,7 @@ namespace SqlSugar
|
||||
}
|
||||
if (propertyInfo != null && propertyInfo.GetSetMethod() != null)
|
||||
{
|
||||
if (propertyInfo.PropertyType.IsClass() && propertyInfo.PropertyType != UtilConstants.ByteArrayType)
|
||||
if (propertyInfo.PropertyType.IsClass() && propertyInfo.PropertyType != UtilConstants.ByteArrayType&&propertyInfo.PropertyType!=UtilConstants.ObjType)
|
||||
{
|
||||
BindClass(generator, result, propertyInfo);
|
||||
}
|
||||
@ -296,6 +296,9 @@ namespace SqlSugar
|
||||
{
|
||||
method = getConvertString;
|
||||
}
|
||||
if (bindPropertyType == UtilConstants.ObjType) {
|
||||
method = getValueMethod;
|
||||
}
|
||||
if (method == null)
|
||||
method = isNullableType ? getOtherNull.MakeGenericMethod(bindPropertyType) : getOther.MakeGenericMethod(bindPropertyType);
|
||||
generator.Emit(OpCodes.Call, method);
|
||||
|
Loading…
Reference in New Issue
Block a user