Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-652

No serializer found for type {0} exception when using "chained" Linq query

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.1
    • 1.7
    • None
    • None

    Description

      See attached Test.

      A detailed description of why this is a problem:

      In our service layer, we have methods that expose IQueryable<IEntity> values. The intent is that other services can uses these to perform more detailed queries. Internal to the service, we query against a collection using the concrete type (GetCollection<Entity>()) and return it as an IQueryable<IEntity>(). Enumerations against this object succeed. However, if we do an additional query against it, we get a serialization exception.

      Attachments

        Activity

          People

            Unassigned Unassigned
            joe.enzminger Joe Enzminger
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: