【发布时间】:2016-11-04 20:36:06
【问题描述】:
当我在从同一教程创建的 VS2015 项目中运行 PM> Add-Migration MyFirstMigration 命令时,按照此 Microsoft Tutorial,我收到以下我无法解决的错误:
找到多个 DbContext。指定使用哪一个。
对 PowerShell 命令和 dotnet 命令的“--context”参数。
注意事项
- 我正在使用上述教程,但我使用的是
Individual User Account身份验证,而不是教程中使用的No Authentication。 - 我有最新版本的
ASP.NeT Core 1.0 and VS2015-Update 3 on windows 8.1 - 这是一个新创建的项目。没有手动安装其他 DbContext
【问题讨论】:
-
错误文字描述了原因和应该怎么做。
标签: c# visual-studio-2015 asp.net-core entity-framework-core