Browse Source

Version synchronization

pull/21/MERGE
sunkaixuan 2 years ago
parent
commit
5dec2c662d
  1. 2
      Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs

2
Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs

@ -442,7 +442,7 @@ namespace SqlSugar
var addItem = readerValues[info]; var addItem = readerValues[info];
if (addItem == DBNull.Value) if (addItem == DBNull.Value)
addItem = null; addItem = null;
if (prop.PropertyType == UtilConstants.IntType) if (UtilMethods.GetUnderType(prop.PropertyType) == UtilConstants.IntType)
{ {
addItem = addItem.ObjToInt(); addItem = addItem.ObjToInt();
} }

Loading…
Cancel
Save