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

Error with .ToList() method

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: 8.0.0
    • None
    • Dotnet Drivers

      Received the following error when trying to retrieve a list of strings using EF and using the .ToList() method. Inserting the list works fine.  The issue does not occur when using the ToArray method.

      Error: MongoDB.Bson.BsonSerializationException: 'Unknown discriminator value 'List`1'.' 

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmettle@bbilogistics.com Josh Mettle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: