Answers for "More than one DbContext was found. Specify which one to use. Use the '-Context' parameter for PowerShell commands and the '--context' parameter for dotnet commands."

4

More than one DbContext was found. Specify which one to use. Use the '-Context' parameter for PowerShell commands and the '--context' parameter for dotnet commands.

Add-Migration MyFirstMigration -Context BloggingContext
update-database -Context BloggingContext
Posted by: Guest on September-09-2020
0

More than one DbContext was found. Specify which one to use. Use the '-Context' parameter for PowerShell commands and the '--context' parameter for dotnet commands.

dotnet ef migrations add <your_migration_name> -c <your_context_class_name>
Posted by: Guest on June-24-2021

Code answers related to "More than one DbContext was found. Specify which one to use. Use the '-Context' parameter for PowerShell commands and the '--context' parameter for dotnet commands."

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language