我可以将辨别器映射到两个集合吗?

时间:2019-05-20 11:28:27

标签: c# entity-framework

我有3张桌子:

RunWorkerAsync

我可以直接使用Fluent Api绘制机场地图吗 (如多对多)

public class Person
{
    public int Id { get; set;}    

    public ISet<Airport> PickupAirports { get; set; }

    public ISet<Airport> DeliveryAirports { get; set; }
}

public class Airport
{
    public int Id { get; set;}    
}

public class PickupDeliveryAirports
{
    public int PersonId { get; set; }

    public int AirportId { get; set; }

    public string Type { get; set; }
}

根据类型转到PickupAirports和DeliveryAirports,并跳过PickupDeliveryAirports?

0 个答案:

没有答案