mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 09:03:49 -07:00
datamapper supports null and DBNull
This commit is contained in:
parent
af1e05433a
commit
44ff12eaaa
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ namespace Marr.Data.Mapping
|
||||||
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…
Add table
Add a link
Reference in a new issue