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

Making filtering not case sensitive #8

Open
jgraygi opened this issue Jun 9, 2014 · 4 comments
Open

Making filtering not case sensitive #8

jgraygi opened this issue Jun 9, 2014 · 4 comments

Comments

@jgraygi
Copy link

jgraygi commented Jun 9, 2014

This helper fulfills many of my needs but there is one small thing that needs to be addressed. You need to have the ability not to be case sensitive on the filters for "StartsWith", "EndsWith", and "Contains".

@dradovic
Copy link

+1

@burkeholland
Copy link
Contributor

Now taking pull requests! 😸

@corydeppen
Copy link
Contributor

One thing to consider, which I recently ran into, is that case sensitivity is handled differently depending on whether you're using LINQ to objects, SQL, or entities. In the case of objects, strings will be compared and case will matter, but the database's collation will be used in the case of SQL and entities and case will not matter by default (see Differences between LINQ to Objects and LINQ to SQL queries). Trying to handle case sensitivity might be tricky, since you'd likely have to take into account what the expression is being applied to. For instance, we're using the helpers with LINQ to entities and it handles case-insensitive queries as expected.

@mshtawythug
Copy link

I forked it and added the case insensitive and more https://github.com/mshtawythug/dlinq-helpers

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

5 participants