I having and issue with a sql linq query that I have. I have a query that when you type a person name in an input text box I have to show a list of persons that contain that name, but the problem that I am having is the following: a person name can look like so jose ou josé. It's the same name but one with é an the other without é. My query
var person = (from p in context.Person
where p.Name.Contains(personName) || p.Name.StartsWith(personName) || p.Name.EndsWith(personName)
select p).OrderBy(m => m.Name).ToPagedList(page, 10);
return person;
The Idea is to when I wright jose the query get all the people that have jose and josé and vice versa. If I wright jose the query only returns people that have jose in there name and does not allsow return people that have josé with the é. Does any one know how I can ressolve this issue. Thank you