Migration Problem #63
-
I congratulate you wholeheartedly for such an excellent work. I wish you continued success. I wanted to review the project in Visual Studio 2022. However, i am getting the error in database migrations, "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." Database and tables are created in migration operations. But when getting tokens from postman and swagger "User Not Found!" gives a fault. I also tried visual studio code and I get the same error. I am attaching screenshots. I'm sorry for my bad English. Thank you for your interest and I wish you good work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, you don't have to run the update-database command. It's handled by the application automatically. 1.Clone the latest repository. Do try this and let me know. I will try to update documentations this week. |
Beta Was this translation helpful? Give feedback.
Hi, you don't have to run the update-database command. It's handled by the application automatically.
1.Clone the latest repository.
2.Open via VScode or Vs 2022
3. Configure your connection string and a valid db provider ( mssql / mysql / postgresql )
4. Run the application
5. Application will automatically create the required database with the schema.
Do try this and let me know. I will try to update documentations this week.