✅ Cannot convert from string[] to 'char' [SOLVED]
Hi, I'm getting this error that I am converting from string[] to char. The data type for the field I am trying to retrieve isn't char but string. Somehow, I receive this error message.
var allLocations = new[] { "PlaceOne", "PlaceTwo" };
var locations = _context.CityLocations.Where(x => x.Location.Contains(allLocations)).ToList(); //Cannot convert from string[] to 'char'allLocations.Contains(x.Location)allLocations.Contains(x.Location)