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

Document How to do collations with LINQ

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.12.0
    • Documentation, Linq
    • None

    Description

      A simple LINQ query where toUpper is used to effect a case-insensitive match becomes an aggregation with an anchored case-insensistive regex $match stage.

      This works, but scans the entire index. Using a case-insensitive collation is a solution, but LINQ does not currently support collations in the MongoDB implementation.

      Attachments

        Activity

          People

            dmitry.lukyanov@mongodb.com Dmitry Lukyanov
            spencer.brown@mongodb.com Spencer Brown
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: