Tuesday, July 23, 2019

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.

Assuming .NET Core Code First Entity Framework, fix this stuff as suggested:

  1. Add-Migration myMigration -Context GameContext
  2. update-database -Context GameContext

No comments:

Post a Comment