I have to enable migration using package manager console in visual studio 2013. The problem is that there is already a CustomMigration Folder which contains all migration files. So how should I enable that CustomMigration Folder and add my migration files to CustomMigration Folder?
我必须在visual studio 2013中使用包管理器控制台启用迁移。问题是已经存在包含所有迁移文件的CustomMigration文件夹。那么我该如何启用CustomMigration文件夹并将我的迁移文件添加到CustomMigration文件夹?
1 个解决方案
#1
0
In the configuration class constructor add this line:
在配置类构造函数中添加以下行:
this.MigrationsDirectory = "Path\\CustomMigration";
#1
0
In the configuration class constructor add this line:
在配置类构造函数中添加以下行:
this.MigrationsDirectory = "Path\\CustomMigration";