Posted By

housecor on 10/27/10


query nested

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Project values from an EntityCollection in LINQ

 / Published in: C#

Uses a nested query to prject values from an entity collection.

  1. from c in context.Contacts
  2. select new {c.FirstName, c.LastName,
  3. StreetsCities = from a in c.Addresses select new { a.Street1, a.City }
  4. }

Report this snippet  

You need to login to post a comment.