Entity Framework multiple references to same table
问题 I'm having trouble creating my database with EF code-first. I have an entity Player and an entity friedship. Each friendship references two players. One of the players is the sender, the other one is the receiver of the friendship. This are my entities: Player.cs public class Player { public int PlayerId { get; set; } [Required] public string Name { get; set; } [Required] public string Email { get; set; } [InverseProperty("Receiver")] public virtual List<Friendship> FriendshipsIncoming { get;