Entity serialization detaches after OfType method

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
            Reporter:
            Rishit Bhatia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: