Project values from an EntityCollection in LINQ
Uses a nested query to prject values from an entity collection.
Copy this code and paste it in your HTML
from c in context.Contacts
select new {c
.FirstName, c
.LastName,
StreetsCities
= from a
in c
.Addresses select new { a
.Street1, a
.City } }
Report this snippet
Comments
Subscribe to comments