C#C
C#3y ago
Adnan307

❔ ef core foreign key problem

public class Player
{
        public int Id { get; set; }
        public Ban Ban { get; set; }
}

public class Ban
{
        public int Id { get; set; }
        public Player Player { get; set; }  
        public Player Admin { get; set; }
}

how i need to configure the foreign keys for this situation?
Was this page helpful?