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

Document How to do collations with LINQ

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.12.0
    • Component/s: Documentation, Linq
    • Security Level: Public
    • Labels:
      None
    • Case:

      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

            Assignee:
            dmitry.lukyanov Dmitry Lukyanov
            Reporter:
            spencer.brown Spencer Brown
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: