Created
March 11, 2018 21:32
-
-
Save obegendi/318415ace2c0e737f16e26ed13916e00 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| foreach (var city in cities){ | |
| var city = context.City.Where(x => list.Contains(x.Name)).ToList(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var cityList = context.City.ToList(); | |
| foreach (var city in cityList){ | |
| var city = cityList.Where(x => x.Name.Contains(city)); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment