Arrays and lists should not throw when no element in document

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Unknown
    • Public Preview 1
    • Affects Version/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Damien Guard
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: