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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.1
    • Affects Version/s: 1.6.1
    • Component/s: None
    • None
    • Major Change

      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"))

            Assignee:
            craig.wilson@mongodb.com Craig Wilson
            Reporter:
            hyurtseven Huseyin Yurtseven
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: