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

x => x.Name.Contains("FirstName", StringComparison.CurrentCultureIgnoreCase) throws NotSupportedException

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.15.1
    • Affects Version/s: 2.14.1
    • Component/s: LINQ3
    • Labels:
      None
    • Minor Change

      Hi, when I trying to query LINQ request x => x.Name.Contains("FirstName", StringComparison.CurrentCultureIgnoreCase) ** throw the following error message.

       

      Message:

      Expression not supported: x.Name.Contains("FirstName", CurrentCultureIgnoreCase).

       

      Following are my using

       - Mongo driver: v2.14.1

       ** - Linq provider: clientSettings.LinqProvider = LinqProvider.V3

      NOTE: Original description described the problem that OrdinalIgnoreCase doesn't work. This is expected and explained below in the comments.

       

            Assignee:
            james.kovacs@mongodb.com James Kovacs
            Reporter:
            453532579@qq.com Chock chen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: