|
@ -128,7 +128,7 @@ namespace SqlSugar |
|
|
} |
|
|
} |
|
|
if (propertyInfo != null && propertyInfo.GetSetMethod() != null) |
|
|
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); |
|
|
BindClass(generator, result, propertyInfo); |
|
|
} |
|
|
} |
|
@ -296,6 +296,9 @@ namespace SqlSugar |
|
|
{ |
|
|
{ |
|
|
method = getConvertString; |
|
|
method = getConvertString; |
|
|
} |
|
|
} |
|
|
|
|
|
if (bindPropertyType == UtilConstants.ObjType) { |
|
|
|
|
|
method = getValueMethod; |
|
|
|
|
|
} |
|
|
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); |
|
|
generator.Emit(OpCodes.Call, method); |
|
|