Advertisement
Guest User

Untitled

a guest
Mar 19th, 2016
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.24 KB | None | 0 0
  1. var departments = ctx.Departments.Select(d => new
  2.             {
  3.                 Id = d.Id
  4.                 Name = d.Name,
  5.                 Properties = ctx.DepartmentProperties.Where(p => p.Id == d.Id).Select(p => p.PropertyValue)
  6.             });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement