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

Entity serialization detaches after OfType method

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.2.1
    • Affects Version/s: None
    • None
    • None
    • Dotnet Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Once the OfType<T> operation is used subsequent LINQ operations in the query chain "detach" or "forget" how the entity is queried due to the way the MongoDB C# LINQ driver considers "OfType" to be a change in serializer.

      As an example of what can go wrong: this post, `OfType` does not work with Polymorphic entities. 

       

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

              Created:
              Updated:
              Resolved: