我有一些实体,例如
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”