Answering your first question. Create a Migration by running add-migration SeedOnly
Clear out all Up() and Down() code generated if there was any pending changes
public partial class SeedOnly : DbMigration
{
public override void Up()
{
}
public override void Down()
{
}
}
Then you can Target a Specific Migration by running update-database -TargetMigration SeedOnly in the Package Manager console
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…