我有一些实体 比如
public class SalesOrderEntity
{
public virtual ICollection<SalesOrderLineEntity> SalesOrderLineEntities { get; set; }
...
}
public class SalesOrderLineEntity
{
public virtual SOCustomerEntity SOCustomerEntity { get; set; }
...
}
public class AirlineTicketEntity : SalesOrderLineEntity
{
public virtual ICollection<FlightSailEntity> FlightSailEntities { get; set; }
...
}
我可以用这种方式预加载其他实体
return _context.SalesOrderEntities
.Include("SalesOrderLineEntities")
.Include("SalesOrderLineEntities.SOCustomerEntity")
但是如何在AirlineTicketEntity中预加载“FlightSailEntity”