Support parameterless and single char overloads of Trim, TrimStart and TrimEnd in LINQ

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: LINQ
    • None
    • Dotnet Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      The LINQ provider currently only registers the char[] overloads of string.Trim, string.TrimStart and string.TrimEnd in StringMethod.cs. We should also register the parameterless and single-char overloads so queries like: 

      collection.AsQueryable().Where(x => x.Str.TrimStart() == "abc")
      collection.AsQueryable().Where(x => x.Str.TrimStart(' ') == "abc")

      don't throw ExpressionNotSupportedException.

            Assignee:
            Unassigned
            Reporter:
            Kyra Ramesh Krishna
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: