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

Arrays and lists should not throw when no element in document

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • Public Preview 1
    • Affects Version/s: None
    • None

      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

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

              Created:
              Updated:
              Resolved: