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

Mapping nullable Lists into Models

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 8.0.0
    • Affects Version/s: Public Preview 1
    • None

      Hello Team,

      I am currently facing an issue while attempting to map a nullable `List<>` into models. To elaborate, if I have a collection containing four records, where one record includes a List and the other three do not have this property in their respective records.

      Upon trying to retrieve the data, I encounter the following error:

      `System.Collections.Generic.KeyNotFoundException: Element 'SubjectURI' not found.`

      I would appreciate your assistance in resolving this matter.

      Thank you.

            Assignee:
            damien.guard@mongodb.com Damien Guard
            Reporter:
            abhishek.patil@learningmate.com Abhishek Patil
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: