1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-03-03 10:06:06 +00:00

datamapper supports null and DBNull

This commit is contained in:
kay.one 2013-06-14 08:20:18 -07:00
parent af1e05433a
commit 44ff12eaaa

View file

@ -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);
}