Posted By

housecor on 10/16/10


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


Eager loading in Entity Framework


 / Published in: C#
 

  1. var beverageCategory = (from c in context.Categories
  2. .Include("Products")
  3. where c.CategoryName == "Beverages"
  4. select c).Single();

Report this snippet  

You need to login to post a comment.