I'm using EF Code First and I have a navigation property called Category that I want eager loaded in every call:
public class Product
{
...
public Category Category { get; set; }
}
To do this I have to include it in every call I'll do on Product
var results = from p in db.Products.Include("Category") select p;
Is there a way to have Category property eager loaded, therefore generation a SQL join, in every call without having to include it every time?
thank you