9

I have a Entity Framework entity with a string Property named Description.
Searching for all entities where the Description contains a string is as simple as:

var res = from u ctx.Users where u.Description.contains(str) select u;

But suppose I want to support case insensitive search?

2

1 Answer 1

13

If you're using Linq to enties the search is done by the sql server so if the search is case sensitive or not depends on server settings.

Sign up to request clarification or add additional context in comments.

2 Comments

And what about Oracle. If the dataAccess is built on top of EF because of Multi-RDBMS support. I can't resolve the problem on Oracle.
So there is no way to specify whether we want a case sensitive or case insensitive search using EF?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.