You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding Trim() and ToLower() to the member and constant expression is causing lambda expression to return null. I believe LINQ doesn't know how to translate string.Trim() and string.ToLower(). This causes my code to throw an exception: "Value right cannot be null. Parameter right"
So I removed any calls to TrimToLower() in the GetExpression method under Operation classes (EqualTo.cs, Contains.cs, etc) and that solved the issue.
Should Trim() and ToLower() really be part of the lambda expression?
The text was updated successfully, but these errors were encountered:
Adding Trim() and ToLower() to the member and constant expression is causing lambda expression to return null. I believe LINQ doesn't know how to translate string.Trim() and string.ToLower(). This causes my code to throw an exception: "Value right cannot be null. Parameter right"
So I removed any calls to TrimToLower() in the GetExpression method under Operation classes (EqualTo.cs, Contains.cs, etc) and that solved the issue.
Should Trim() and ToLower() really be part of the lambda expression?
The text was updated successfully, but these errors were encountered: