mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 12:32:31 +01:00
datamapper supports null and DBNull
This commit is contained in:
parent
af1e05433a
commit
44ff12eaaa
@ -58,7 +58,7 @@ public object LoadExistingEntity(ColumnMapCollection mappings, DbDataReader read
|
|||||||
dbValue = dataMap.Converter.FromDB(dataMap, dbValue);
|
dbValue = dataMap.Converter.FromDB(dataMap, dbValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dbValue != DBNull.Value)
|
if (dbValue != DBNull.Value && dbValue != null)
|
||||||
{
|
{
|
||||||
dataMap.Setter(ent, dbValue);
|
dataMap.Setter(ent, dbValue);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user