I have this basic linq query where I want to get a city from the database. The problem is that my search string is trimmed without me asking for it. I've simplified it as much as possible. Example:
var firstCity =
from city in db.Cities
where city.City_Code == "LAS "
select city;
The city.City_Code is "LAS" and not "LAS ", still it gets the city with the City_Code "LAS".
How do I solve this? I've also tried Equals, but the result is the same.