datamapper supports null and DBNull

pull/2/head
kay.one 12 years ago
parent af1e05433a
commit 44ff12eaaa

@ -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…
Cancel
Save