title: Entity Framework 6 - foreign key issue
body: <p>I have the following model using EF6, where I'm trying to link a 'ContentArticleHOAsubdivision' entity to a 'SubdivisionHOA':</p>
  
  <pre><code>public partial class ContentArticleHOAsubdivision
  {
      public int Id { get; set; }
      [ForeignKey("ContentArticleHOA")]
      public long ContentArticleId { get; set; }
      [ForeignKey("SubdivisionsHOA")]
      public short SubdivisionId { get; set; }
  
      public virtual ContentArticleHOA ContentArticleHOA { get; set; }
      public virtual ICollection&lt;SubdivisionHOA&gt; SubdivisionsHOA { get; set; }
  }
  
  public partial class SubdivisionHOA
  {
      public short Id { get; set; }
      public string Name { get; set; }
      [ForeignKey("TopTierDivisionHOA")]
      public byte TopTierDivisionId { get; set; }
  
      public virtual TopTierDivisionHOA TopTierDivisionHOA { get; set; }
  }
  </code></pre>
  
  <p>I get the error:</p>
  
  <p>The foreign key component 'SubdivisionId' is not a declared property on type 'SubdivisionHOA'. Verify that it has not been explicitly excluded from the model and that it is a valid primitive property.</p>
  
  <p>The 'Id' property in SubdivisionHOA I'm trying to link on needs to be named 'Id' as that's the name of the actual column in the database, so I'm not sure what I need to do?</p>
  
  <p>I've tried adding <code>[InverseProperty("Id")]</code> before the <code>[ForeignKey]</code> attributes but get the same error.</p>