I am trying to create a new migration using the name InitialModel. However, when I open up the migration file, I can only see empty up() and down() methods. There should be createTable() methods within the up() method. I have removed migrations, updated the database and started a new project, however, none of these worked. Can someone please tell me how I can get the migration files to display the createTable methods?

public partial class initialModel : DbMigration
{
    public override void Up()
    {
    }

    public override void Down()
    {
    }
}

Print screen of up() and down() methods

Print screen of DbContext

1 Answers

0
Community On

This was resolved by enabling the authentication option at the beginning. This creates a model called IdentityModel.cs which has the code for creating the methods in the up() and down() methods.

Print screen