Entity Framework .Include() with compile time checking?

后端 未结 5 1383
误落风尘
误落风尘 2020-12-15 11:11

Consider the following code, which is calling against an EF generated data context:

var context = new DataContext();
var employees = context.Employees.Includ         


        
5条回答
  •  攒了一身酷
    2020-12-15 11:50

    var context = new DataContext();
    var employees = context.Employees.Include(context.Department.EntitySet.Name);
    

提交回复
热议问题