Update owns one

This commit is contained in:
sunkaixuan 2024-07-04 21:00:08 +08:00
parent 85817abcba
commit 4d6f0af01c
2 changed files with 7 additions and 2 deletions

View File

@ -160,7 +160,12 @@ namespace SqlSugar
}
else
{
item.PropertyInfo.SetValue(parentObj, dataReader.GetValue(itemIndex));
var setValue = dataReader.GetValue(itemIndex);
if (setValue == DBNull.Value)
{
setValue = null;
}
item.PropertyInfo.SetValue(parentObj, setValue);
}
}
}

View File

@ -2,7 +2,7 @@
<package >
<metadata>
<id>SqlSugarCore</id>
<version>5.1.4.161-preview12</version>
<version>5.1.4.161-preview13</version>
<authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>