I have a model
Retailer which has the fields
ID
Name
and another
Store
StoreName
RetailerID
In SQL to get the name of the retailer rather than just the ID when selecting all stores I can use a join.
How do I go about this in EF??
using (var context = new DBContext())
{
//Get all stores with the name of the retailer
}
Thanks