I have a linq query similar to the following that joins with the entity ProductCategories:
var list = from p in db.Products
join pc in db.ProductCategories on p.ProductCategoryId equals pc.Id
select new Product()
{
Id = p.Id, Name = p.Name, CategoryName = pc.Name
};
Lets say I want to select p.* and in addition set the CategoryName navigation property from ProductCategories. Is this possibe? Or will I always have to specify everything when using navigation properties?