This article is a mirror article of machine translation, please click here to jump to the original article.

View: 2477|Reply: 0

[Source] Use the dotnet-ef tool to generate a rollback script

[Copy link]
Posted on 7/15/2024 11:20:19 AM | | | |
Requirements: The local project uses EF Core as the ORM framework, and during the local development process, the database has added new tables and new fields many times. That is, roll back to the database structure of the previous release.

dotnet ef migrations script command

Generate SQL script from migration, this command can be used as a build upgrade script or as a build retrospective script to generate a rollback script with the following command:

As shown below:



Reference:The hyperlink login is visible.





Previous:ASP.NET Core exception Headers are read-only, response has already started
Next:Nginx's Web Resource Caching (CDN)
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com