Eager loading in Entity Framework


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var beverageCategory = (from c in context.Categories
  2. .Include("Products")
  3. where c.CategoryName == "Beverages"
  4. select c).Single();

Report this snippet


Comments


You need to login to view comments.