How to apply all migrations to a new database?

Viewed 858

I'm using ASP.NET Core v3.1. I have a migration folder as shown below. Now I've lost my database.

How can I apply all migrations to new database?

Running the command update-database doesn't work.

et

1 Answers

please make sure your database engine is available. and next step make sure your context and your startup class and program class configured.

Related