You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the NpgsqlHistoryRepository.GetCreateIfNotExistsCommands method, which is called during each Migrator.MigrateAsync execution, sets the SuppressTransaction property to true for every SQL operation. As a result, any migration using an external transaction throws an exception:
"User transaction is not supported with a TransactionSuppressed migration or a retrying execution strategy."
The text was updated successfully, but these errors were encountered:
After the latest updates in the documentation, the EF Core team clarified that user transactions can be used in manual migrations with some restrictions:
dotnet/EntityFramework.Docs#4896
https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-9.0/breaking-changes#migrations-transaction
However, the
NpgsqlHistoryRepository.GetCreateIfNotExistsCommands
method, which is called during eachMigrator.MigrateAsync
execution, sets theSuppressTransaction
property to true for every SQL operation. As a result, any migration using an external transaction throws an exception:"User transaction is not supported with a TransactionSuppressed migration or a retrying execution strategy."
The text was updated successfully, but these errors were encountered: