/ Published in: C#
Uses lambda and any operator to filter list.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
from c in context.Contacts where c.Addresses.Any(a => a.CountryRegion == "UK") select c;
from c in context.Contacts where c.Addresses.Any(a => a.CountryRegion == "UK") select c;