Uploaded image for project: 'Entity Framework'
  1. Entity Framework
  2. EF-62

Arrays and lists should not throw when no element in document

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Unknown Unknown
    • Public Preview 1
    • 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

      Attachments

        Activity

          People

            damien.guard@mongodb.com Damien Guard
            damien.guard@mongodb.com Damien Guard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty