mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-12-26 08:24:54 +01:00
datamapper supports null and DBNull
This commit is contained in:
@@ -58,7 +58,7 @@ namespace Marr.Data.Mapping
|
||||
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