title: Dataannotation Foreignkey property name vs column name?
body: <p>I am using System.ComponentModel.DataAnnotations in my domain classes with EF5 and framework 4.5</p>
  
  <pre><code>public class SalesOrderLine : LoggedEntity
      {
         [ForeignKey("SalesLine")]
         [Required]
         public int SalesLine_Id { get; set; }
         public SalesLine SalesLine { get; set; }
    }
  </code></pre>
  
  <p>However the <a href="http://www.codeproject.com/Articles/319366/EF-Code-First-Add-a-Foreign-Key-relationship" rel="nofollow">example here</a> uses the column name as the foreign key, not the navigation property name.
  Is there any difference between the two ways of doing it?</p>
  
  <p>[</p>