title: Mapping a foreign key with a custom column name
body: <p>I'm using Entity Framework 4.3 code-first with Oracle. I'm getting the following error:</p>
  
  <blockquote>
    <p>System.InvalidOperationException : The ForeignKeyAttribute on property 'WidgetSequence' on type 'WidgetDistributor.WidgetEntity' is not valid. The foreign key name 'WIDGETSEQUENCE_ID' was not found on the dependent type 'WidgetDistributor.WidgetEntity'. The Name value should be a comma separated list of foreign key property names.</p>
  </blockquote>
  
  <p>My entities are like this:</p>
  
  <pre><code>[Table("WIDGETENTITIES")]
  public class WidgetEntity {
  
      [Column("WIDGETENTITY_ID")]
      public int Id { get; set; }
  
      [ForeignKey("WIDGETSEQUENCE_ID")]
      public WidgetSequence Sequence { get; set; }
  
      // and other properties that map correctly
  }
  
  [Table("WIDGETSEQUENCES")]
  public class WidgetSequence { 
  
      [Column("WIDGETSEQUENCE_ID")]
      public int Id { get; set; }
  
      [Column("NUMBER")]
      public int Number { get; set; }
  }
  </code></pre>
  
  <p>My code seems correct. What have I done wrong, here?</p>