I'am trying to map on code first this tables:
Table Agent(
int AgentId PK,
--...
)
Table Group(
int GroupId PK,
varchar Name,
)
Table GroupAgent(
int AgentId PK,
int GroupId
)
But now, I don't know How Can I Map this:
public class Agent{
public int Id {get; set;}
public string Name {get; set;}
public virtual Group AgentGroup {get; set;}
}
public class Group{
public int Id {get; set;}
public List<Agent> Agents {get; set;}
}
Someone Can Help me?