Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I am having an issue, i am building a search screen which returns a list from a web service call as well as my Entity Framework Database.

I have built a my linq query using filters based on what user would like to search for
the issue is results are only returned if the casing on the query matches what is stored in the database.

What I have tried:

This is the query i am currently running when trying to search

var deleg = ExpressionBuilder.GetExpression<customer>(filters).Compile();
IQueryable<customer> portalResults = this.DbContext.Customers.Where(deleg).AsQueryable();
Posted
Updated 4-Sep-16 20:24pm
Comments
Karthik_Mahalingam 5-Sep-16 4:33am    
what is filters

1 solution

Try using the Tolower() argument. Customers.Tolower().Where(delete.Tolower())
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900