Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrimToLower #56

Open
maruf-hossain opened this issue Jul 12, 2019 · 0 comments
Open

TrimToLower #56

maruf-hossain opened this issue Jul 12, 2019 · 0 comments

Comments

@maruf-hossain
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant