Details
-
Bug
-
Resolution: Done
-
Unknown
-
None
-
None
Description
Right now if you have a property mapped to the document and there is no value for it then some BsonNull conversions do not happen to the target type and instead throw.
Need to make a matrix of what should throw and what should be allowed - easy fix.
| Type | Behavior |
|---|---|
| Nullable<T> | null |
| string | null |
| array | null |
| list | null |
| guid | throw |
| char | throw |
| int/long/short | throw |
| single/double/decimal | throw |