mirror of
https://github.com/Readarr/Readarr.git
synced 2026-09-22 03:05:03 -04:00
datamapper supports null and DBNull
This commit is contained in:
1 parent
af1e05433a
commit
44ff12eaaa
1 file changed
+1
-1
@@ -58,7 +58,7 @@ public object LoadExistingEntity(ColumnMapCollection mappings, DbDataReader read
|
||||
dbValue = dataMap.Converter.FromDB(dataMap, dbValue);
|
||||
}
|
||||
|
||||
if (dbValue != DBNull.Value)
|
||||
if (dbValue != DBNull.Value && dbValue != null)
|
||||
{
|
||||
dataMap.Setter(ent, dbValue);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user