i have 3 class
public class StockDef
{
    public int Id { get; set; }
    public int StockType { get; set; }
    public virtual OfficeStock SayanStock { get; set; }
    public virtual AgentStock AgentStock { get; set; }
    //....
}
public class OfficeStock
{
    public virtual StockDef StockDef { get; set; }
    //....
}
public class AgentStock
{
    public virtual StockDef StockDef { get; set; }
    //......
}
every StockDef object definitely have (one OfficeStock or one AgentStock).
and every OfficeStock definitely have one StockDef.
and every AgentStock definitely have one StockDef.
how can I implement this, in EF Code first by fluent API?
tnx
I should be how the final table in database? – memo Oct 02 '16 at 04:57