Entity Framework Relationships with Code First Migrations Before you begin, typ this in Package Manager Console: PM> Update-Database Make sure ApplicationDbContext points to a real path in your filesystem.