Migrations Bundles: Provide more info about the bundle
See original GitHub issueToday the bundle is effectively just dotnet ef database update
, but I’ve been thinking it would be helpful to include gestures for these commands too in the bundle:
dotnet ef dbcontext info
(or even just a way to see the DbContext type of the bundle in--help
)dotnet ef migrations list
dotnet ef migrations script
(although this seems much less important since you can just generate a script instead of a bundle in the first place)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:11
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Introducing DevOps-friendly EF Core Migration Bundles
EF Core's new migration bundles provide build artifacts to deploy schema and data changes to your database as part of your DevOps pipeline....
Read more >Migrate your database using Entity Framework Core ...
A migration bundle is a file produced by EF Core that can be used to apply migrations to a database. It was introduced...
Read more >Applying Migrations - EF Core
Bundles. Migration bundles are single-file executables that can be used to apply migrations to a database. They address some of the shortcomings ...
Read more >EF Core 6.0: Introducing Migration Bundles
In this post, let's have a look at a new feature that's coming with EF Core 6 in November, 2021. That's EF Core...
Read more >Working with DevOps friendly EF Core Migration Bundles
The migration bundle is a self-contained executable with everything needed to run a migration. It accepts the connection string as a parameter ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We solved the issues I listed there in EF Core 5.0 which made the script a lot more robust.
The problems that still exist with the script which are solved by bundles are:
Sqlcmd
, SSMS, MSDeploy, etc.)If you have a working solution, there’s no need to move to bundles. Bundles simply enable more databases to achieve the same rich experience on more platforms.
Please consider this an emphatic vote for validating how a bundle will change a target. I’m looking for something like:
bundle --connection [connection string] --script-pending --output [output path]
I’m using bundles in CI/CD and there doesn’t seem any way for me to verify what changes will take place when run against a specific target. I’m generating a single bundle artifact in CI and want to use that all the way through the CD stack.