Posted By

housecor on 10/21/10


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

sharathreddyp
Tyster


Sort Relationships in Entity Framework


 / Published in: C#
 

  1. var lateCustomers = from c in ctx.Customers
  2. where c.IsMoreThan30DaysInArrears
  3. select new {
  4. Customer = c,
  5. Orders = c.Orders.OrderByDescending(
  6. o => o.OrderDate
  7. )
  8. };

Report this snippet  

You need to login to post a comment.