.Net system.DBNull can not converting to BsonValue
Hi Vishal,
DBNull.Value is an indication that a value is missing. Depending on your use case, you could detect if it is (i.e. using Convert.IsDBNull ) and create a BsonNull.Value instead.
Could you provide the following relevant information:
MongoDB .Net driver version.
Snippet .Net code example of your use case.
Example data document.
Regards,
Wan.