title: EF models. Navigation properties can only participate in a single relationship
body: <p>I have my entities like this, they are closely linked. </p>
  
  <pre><code>public class Game
  {
      public int Id { get; set; }
  
      public int FirstTeamId { get; set; }
      public Team FirstTeam { get; set; }
      public int SecondTeamId { get; set; }
      public Team SecondTeam { get; set; }
  
      public Stadium Stadium { get; set; }
      public DateTime Date { get; set; }
  
      public GameStatus Result { get; set; }
  
      public Game(DateTime date , GameStatus result )
      {
          Date = date;
          Result = result;
      }
  }
  
  public class Player
  {
      public int Id { get; set; }
      public string Name { get; set; }
      public string Surname { get; set; }
      public DateTime Birthday { get; set; }
      public PlayerStatus Status { get; set; }
      public PlayerHealthStatus HealthStatus { get; set; }
      public int Salary { get; set; }
      public int TeamId { get; set; }
      public Team Team { get; set; }
  
      public Player(string name , string surname, DateTime birthday, PlayerStatus status, PlayerHealthStatus healthStatus, int salary)
      {
          Name = name;
          Surname = surname;
          Birthday = birthday;
          Status = status;
          HealthStatus = healthStatus;
          Salary = salary;
      }
  
  }
  
  public class Stadium
  {
      public int Id { get; set; }
      public string Name { get; set; }
      public int Capacity { get; set; }
      public int PriceForPlace { get; set; }
  
      public Stadium(string name, int capacity, int priceForPlace)
      {
          Name = name;
          Capacity = capacity;
          PriceForPlace = priceForPlace;
      }
  }
  
  public class Team
  {
      public int Id { get; set; }
      public string Name { get; set; }
      public List&lt;Player&gt; Players { get; set; }
  
      public List&lt;Game&gt; Games { get; set; }
  
      public Team(string name)
      {
          Name = name;
      }
  
      public Team(string name, List&lt;Player&gt; players) : this(name)
      {
          Players = players;
  
      }
  }
  </code></pre>
  
  <p>In my Context class I'm tried to describe my relationships between classes. But something isn't correct.</p>
  
  <pre><code>public class ApplicationContext : DbContext
  {
      public DbSet&lt;Player&gt; Players { get; set; }
      public DbSet&lt;Game&gt; Games { get; set; }
      public DbSet&lt;Team&gt; Teams { get; set; }
      public DbSet&lt;Stadium&gt; Stadiums { get; set; }
  
      public ApplicationContext()
      {
          Database.EnsureCreated();
      }
  
      protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
      {
          optionsBuilder.UseSqlServer("Server=best-komp;Database=FootballApplicationDataBase;Trusted_Connection=True;");
      }
  
      protected override void OnModelCreating(ModelBuilder modelBuilder)
      {
          modelBuilder.Entity&lt;Player&gt;()
              .HasOne(p =&gt; p.Team)
              .WithMany(t =&gt; t.Players)
              .HasForeignKey(p =&gt; p.TeamId)
              .HasPrincipalKey(t =&gt; t.Id);
          modelBuilder.Entity&lt;Team&gt;()
              .HasMany(p =&gt; p.Players)
              .WithOne(p =&gt; p.Team)
              .HasForeignKey(p =&gt; p.TeamId)
              .HasPrincipalKey(t =&gt; t.Id);
  
          modelBuilder.Entity&lt;Game&gt;()
              .HasOne(g =&gt; g.FirstTeam)
              .WithMany(t =&gt; t.Games)
              .HasForeignKey(t =&gt; t.FirstTeamId)
              .HasPrincipalKey(t =&gt; t.Id);
          modelBuilder.Entity&lt;Game&gt;()
              .HasOne(g =&gt; g.SecondTeam)
              .WithMany(t =&gt; t.Games)
              .HasForeignKey(t =&gt; t.SecondTeamId)
              .HasPrincipalKey(t =&gt; t.Id);
  
  
      }
  }
  </code></pre>
  
  <p>What wrong with this code? Because I have "Navigation properties can only participate in a single relationship." error when I try to do something with my ApplicationContext.</p>