static void Main(string[] args) { var context = new SoftUniEntities(); var employees = context.Employees.Include(e => e.Address).Where(a => a.Address.AddressID == 1); Console.WriteLine(employees.First().FirstName); }
static void Main(string[] args) { var context = new SoftUniEntities(); var employees = context.Employees.Include(e => e.Address).Where(a => a.Address.AddressID == 1); Console.WriteLine(employees.First().FirstName); }