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

Support for Enumerable.Any in LINQ queries for StringSerializer like List<string> Properties

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 1.6.1
    • Fix Version/s: 2.1
    • Component/s: None
    • Labels:
      None

      Description

      In OData Any Queries for IList<string> properties like ?$filter=Links/any(x: x eq '/movies/') don't work and it gives "Any is only support for items that serialize into documents. The current serializer is StringSerializer and must implement IBsonDocumentSerializer for participation in Any queries." error.

      That would be good to add support like these queries or x=>x.Links.Any(l=>l.StartsWith("/mov"))

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              craiggwilson Craig Wilson
              Reporter:
              hyurtseven Huseyin Yurtseven
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: