I have two models (User and Game) They are connected by another model named PlayerID. For Instance a user can have an special ID for each game. I would like to set it to that a user can only have one ID for each game. What is the best practice for that?
EDIT:
I will expand it further so you know exactly what I am building. I have players who play games such as Magic the Gathering or Pokemon etc. Each of those games assigns their players IDs. So MTG has DCI numbers and so on. Each player will have an ID for each Game but not more than one per game and I need to make sure that players can't have multiple IDs for the same game.
public class PlayerID
{
public int PlayerID { get; set; }
public string GamePlayerID { get; set; }
public User User { get; set; }
public Game Game { get; set; }
}