Mysql deployment script generated in EF Core 5.0 doesn't support DDL transaction rollback

RafeeqAbd 1 Reputation point
2021-10-21T18:37:21.937+00:00

We are using EF core 5.0 with pomelo mysql db provider. We generate an idempotent sql script to add migration using efcore migration commands. We noticed that the transactions are not rolled back if there are db connection or timeout errors.

How can we ensure the generated script is idempotent, since in the existing state it doesn't behave right.

Developer technologies | .NET | Entity Framework Core
Azure Database for MySQL
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.