How to wrap entire migration script from EF Core Script-Migration command in a transaction?
Clash Royale CLAN TAG#URR8PPP
How to wrap entire migration script from EF Core Script-Migration command in a transaction?
When we do releases using VSTS I need to wrap our EF Core migration scripts generated by Script-Migration in a transaction. We tried creating a SqlServerMigrationsSqlGenerator but it added the transaction above each step. We want to transactionalize the entire script.
How can we do this?
It seems fairly simple to do in EF6 but EF Core there doesn't seem to be the same functionality
I'm having trouble finding the article. Maybe this was it: stackoverflow.com/questions/32014118/… But now that I see this again I wonder if this will actually work with core as well. It seems like it might.
– Adam G
Aug 13 at 13:04
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Can you show how it can be done in EF 6?
– vivek nuna
Aug 12 at 8:23