I\'m using Entity Framework 4.3 code-first with Oracle. I\'m getting the following error:
System.InvalidOperationException : The ForeignKeyAttribute o
ForeignKey attibute expects a property name in your class as the argument but you given the column name. Use fluent mappings.
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Entity()
.HasRequired(w => w.Sequence)
.WithMany()
.Map(m => m.MapKey("WIDGETSEQUENCE_ID"));
}