I have this basic linq query where I want to get the city from the database. The problem is that my search string is truncated without my query. I have simplified this as much as possible. Example:
var firstCity = from city in db.Cities where city.City_Code == "LAS " select city;
City.City_Code is "LAS", not "LAS", but it gets the city with City_Code "LAS".
How can i solve this? I also tried Equals, but the result is the same.
source share