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

Document How to do collations with LINQ

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 2.12.0
    • None
    • 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 (Inactive)
            spencer.brown@mongodb.com Spencer Brown
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: