With Visual Studio one can run the command
Add-Migration InitialCreate -IgnoreChanges
in the Package Manage Console when creating the firs
In the absence of any other way, one can empty the Up and Down method blocks of the migration of all code and run database update.
public partial class Initial : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
}
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}