[英]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.