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

LINQ Provider Needs to Support string.CompareTo for String Comparisons

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.1
    • None
    • Linq
    • None

    Description

      Need to support the string comparison operator for when users would like to, for example, find all people whose names are greater than John.

      var results = collection.AsQueryable().Where(x => x.Name.CompareTo("John") > 0);

      Attachments

        Activity

          People

            craig.wilson@mongodb.com Craig Wilson
            craig.wilson@mongodb.com Craig Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: