![](/img/trans.png)
[英]Entity Framework: enable-migrations in package management console does not work
[英]Enable Migrations does not work in Package Manager Console
我在我的解決方案中安裝了 EF:
PM> Install-Package EntityFramework -IncludePrerelease
之后,我嘗試執行啟用遷移命令,但它不起作用:
PM> enable-migrations
錯誤:
No context type was found in the assembly 'MyProjectName'.
從下拉菜單Default Project中指定目標項目(具有DbContext
派生類),或者:
PM> enable-migrations -Project <MyProjectName>
試試這個命令可能會有幫助。
EntityFrameworkCore\啟用遷移
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.