I\'m trying to query data of the form with LINQ-to-EF:
class Location { string Country; string City; string Address; … }
by
var result = from loc in Location where keys.Contains(new { Country=l.Country, City=l.City, Address=l.Address }
would need to be:
var result = from loc in Location where keys.Contains(new { Country=loc.Country, City=loc.City, Address=loc.Address } select loc;