运行 "dnx ef migrations add" 两次或更多次不会创建空白迁移

Running "dnx ef migrations add" twice or more doesn't create blank Migrations

我正在使用 Entity Framework 7 RC1

我运行以下

dnx ef migrations add InitialMigration

dnx ef migration add MyCustomMigration

我原以为 MyCustomMigration 有空的 UpDown 方法,但它有

向上:

 migrationBuilder.DropForeignKey(name: "FK_XXX_XXX", table: "tbl_XXX");
 migrationBuilder.AddForeignKey(
     name: "FK_XXX_XXX"           ....
     onDelete: ReferentialAction.Cascade);

向下:

migrationBuilder.DropForeignKey(name: "FK_XXX_XXX", table: "tbl_XXX");
 migrationBuilder.AddForeignKey(
     name: "FK_XXX_XXX"           ....
     onDelete: ReferentialAction.Restrict);

如果我 运行 命令超过两次,它的作用完全一样

dnx ef migration add MyCustomMigration2

创建具有完全相同内容的相同迁移文件

我想创建一个空的迁移文件,这样我就可以放入我的自定义迁移。但是好像那里有一个错误。

这看起来像是问题 #3751 which should be fixed in the nightly builds