title: Entity Framework Code First Renaming Columns/Keys
body: <p>I have an <code>Employee</code> table that links employees to their contact info. I have it set up like so:</p>
  
  <pre><code>    [ForeignKey("AddressId")]
      public virtual Address Address { get; set; }
  
      [ForeignKey("HomePhoneId")]
      public virtual PhoneNumber HomePhone { get; set; }
  
      [ForeignKey("WorkPhoneId")]
      public virtual PhoneNumber WorkPhone { get; set; }
  
      [ForeignKey("CellPhoneId")]
      public virtual PhoneNumber CellPhone { get; set; }
  </code></pre>
  
  <p>When I try to load employees from the database, however, it automatically renames the columns, completely overriding the attributes:</p>
  
  <pre><code>Invalid column name 'PhoneNumber_Id'.
  
  Invalid column name 'PhoneNumber_Id1'.
  
  Invalid column name 'PhoneNumber_Id2'.
  
  Invalid column name 'Address_Id'.
  </code></pre>
  
  <p>Why is it doing this?</p>