title: The navigation property 'FootballGame' was not found on the dependent type 'Bd.Domain.Entities.FootballGame'
body: <p>I am creating my first asp.net mvc3 application. I'm using code first methodology. I have the following models:</p>
  
  <pre><code>public class FootballGame
  {
      [Key]
      public Guid id_FootballGame { get; set; }
  
      [ForeignKey("FootballGame")]
      public Guid? FK_id_FootballGame { get; set; }
      public virtual FootballGame PreviousFootballGame { get; set; }
  
      [ForeignKey("FootballTeam")]
      public Guid id_FootballTeam_owner { get; set; }
      public virtual FootballTeam FootballTeamOwner { get; set; }
  
      [ForeignKey("FootballTeam")]
      public Guid id_FootballTeam_guest { get; set; }
      public virtual FootballTeam FootballTeamGuest { get; set; }
  }
  
  public class FootballTeam
  {
      [Key]
      public Guid id_FootballTeam { get; set; }
      public string teamName { get; set; }
  }
  </code></pre>
  
  <p>And I have the following class:</p>
  
  <pre><code>public class EFDbContext : DbContext
  {
      public EFDbContext() : base("name=EFDbContext") { }
  
      public DbSet&lt;FootballTeam&gt; FootballTeams { get; set; }
      public DbSet&lt;FootballGame&gt; FootballGames { get; set; }
  }
  </code></pre>
  
  <p>Unfortunately, there is an exception:</p>
  
  <blockquote>
    <p>The ForeignKeyAttribute on property 'FK_id_FootballGame' on type
    'Bd.Domain.FootballGame' is not valid. The navigation
    property 'FootballGame' was not found on the dependent type
    'Bd.Domain.FootballGame'. The Name value should be a valid
    navigation property name.</p>
  </blockquote>
  
  <p>I tried to remove these lines:</p>
  
  <pre><code>[ForeignKey("FootballGame")]
  public virtual FootballGame PreviousFootballGame { get; set; }
  </code></pre>
  
  <p>However, another exception to appear:</p>
  
  <blockquote>
    <p>The ForeignKeyAttribute on property 'id_FootballTeam_owner' on type
    'Bd.FootballGame' is not valid. The navigation property 'FootballTeam'
    was not found on the dependent type 'Bd.FootballGame'. The Name value
    should be a valid navigation property name.</p>
  </blockquote>
  
  <p>I look forward to any help. 
  Regards, Denis.</p>