升级Nuget Gallery - EF AutomiaticMigration问题

时间:2014-12-22 14:35:10

标签: entity-framework powershell nuget

我在公司内部自我托管nuget画廊。我正在尝试升级它,但我有以下错误:

Unable to update database to match the current model because there are pending changes and automatic migration is disabled. 
Either write the pending model changes to a code-based migration or enable automatic migration. 
Set DbMigrationsConfiguration.AutomaticMigrationsEnabled to true to enable automatic migration. 

我不知道如何从服务器上的powershell / cmd升级数据库。我没有安装VisualStudio。

更新

我尝试从EF手动运行migrate.exe,但我有:

ERROR: Could not load file or assembly 'F:\\NugetGallery\\bin\\NuGetGallery.Website' or one of
 its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

0 个答案:

没有答案