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

XMLWordPrintableJSON

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

      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
              Reporter:
              Chock chen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: