![](/img/trans.png)
[英]More than one migrations configuration type was found in the assembly 'ForApi'. Specify the name of the one to use
[英]More than one migrations configuration type was found in the assembly ''. Specify the name of the one to use. On add-migration
在包管理器控制台中,我正在尝试更新我的数据库。 当我输入此命令时:
add-migration Migration1
我得到了这个:
在程序集“MyProject.POCO”中找到了多个迁移配置类型。 指定要使用的名称。
我用谷歌搜索了错误,我得到了这个:
add-migration InitialBSchema -IgnoreChanges -ConfigurationTypeName
ConfigurationB -ProjectName ProjectContextIsInIfNotMainOne
-StartupProjectName NameOfMainProject -ConnectionStringName ContextB
但我不知道如何将其应用于我的项目。 我应该为ConfigurationTypeName写什么? 或者有更简单的方法吗? 谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.