So I have a list of an object using an unconventional name for EF, and within that object I am defining a reference to the upper level object that holds the list. Everything is all swell until I see the name it generates for me, I tried to change that using the [Column]
attribute and that fails.
Code:
[Column("CompanyFK")]
public Company CompanyFK { get; set; }
Generated Code:
public override void Up()
{
AddColumn("dbo.AspNetUsers", "CompanyFK_CompanyPK", c => c.Int());
CreateIndex("dbo.AspNetUsers", "CompanyFK_CompanyPK");
AddForeignKey("dbo.AspNetUsers", "CompanyFK_CompanyPK", "dbo.Company", "CompanyPK");
}