Browse Source

Code optimization

pull/12/MERGE
sunkaixuan 6 years ago
parent
commit
1a0f80fdf6
  1. 4
      Src/Asp.Net/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs

4
Src/Asp.Net/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs

@ -267,6 +267,10 @@ namespace SqlSugar
{ {
method = getConvertValueMethod.MakeGenericMethod(bindPropertyType); method = getConvertValueMethod.MakeGenericMethod(bindPropertyType);
} }
if (bindPropertyType == UtilConstants.IntType)
{
method = getConvertValueMethod.MakeGenericMethod(bindPropertyType);
}
break; break;
case CSharpDataType.Guid: case CSharpDataType.Guid:
CheckType(bind.GuidThrow, bindProperyTypeName, validPropertyName, propertyName); CheckType(bind.GuidThrow, bindProperyTypeName, validPropertyName, propertyName);

Loading…
Cancel
Save