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

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

Table of contents

There was an error in the terminal I encountered when I was migrating my first file it happened because my file name dbcontext is DbContextJewel and in program.cs I've called the dbcontext file with name of dbcontext instead of DbContextJewel

Error :

In file of program.cs

Solution

Results

--Now Migration is done I hope it is clear to you if you have any further questions you can leave a comment below


Happy learning