mirror of
https://github.com/Readarr/Readarr.git
synced 2026-01-27 15:32:59 -05:00
datamapper supports null and DBNull
This commit is contained in:
@@ -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