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.
As the error message said, there are more than on DbContext, when running the migration commands, you need to use the the '-Context' parameter for PowerShell commands and the '--context' parameter for dotnet commands.
So, if you want to use the AuthenticationTutorial1Context, the migration commands should like this:
add-migration CreateIdentitySchema -Context -AuthenticationTutorial1Context
update-database -Context -AuthenticationTutorial1Context
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion