简体   繁体   中英

How to apply all migrations to a new database?

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.

等

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM