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
Once we do this, the script will need to start managing transactions. This work is tracked by dotnet/efcore#7681. We may put this feature behind a flag (e.g. --use-transactions) or we may just start always including them in the script.
⚠️ Warning, we need to ensure that we don't disable transactions entirely. Projects referencing older versions of EF Core or users with older versions of dotnet ef won't be able to manage transactions inside the script, so we should never add transacted="false" to the manifest in these cases.
Any project referencing Microsoft.EntityFrameworkCore version 5.0.0 or higher will include SQL transaction statements (even when using older versions of dotnet ef) and can safely add transacted="false" to the manifest.
Some SQL statements cannot run inside a transaction. EF Core allows you to suppress the transaction inside the migration:
Unfortunately, this doesn't work when applying the migration during publish via Web Deploy.
In order to fix this, we need to add
transacted="false"
to the dbfullsql provider in the MSDeploy manifest.Once we do this, the script will need to start managing transactions. This work is tracked by dotnet/efcore#7681.
We may put this feature behind a flag (e.g. --use-transactions) orwe may just start always including them in the script.or users with older versions ofwon't be able to manage transactions inside the script, so we should never adddotnet ef
transacted="false"
to the manifest in these cases.cc @vijayrkn @ajcvickers @JeremyLikness
The text was updated successfully, but these errors were encountered: