[EF-62] Arrays and lists should not throw when no element in document Created: 08/Oct/23  Updated: 10/Oct/23  Resolved: 10/Oct/23

Status: Closed
Project: Entity Framework
Component/s: None
Affects Version/s: None
Fix Version/s: Public Preview 1

Type: Bug Priority: Unknown
Reporter: Damien Guard Assignee: Damien Guard
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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

Generated at Thu Feb 08 08:26:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.