-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a flag to opt into SaveChanges transactions even where they're not necessary #27574
Comments
Obsoletes AutoTransactionsEnabled, replacing it with a new 3-valued enum. Closes dotnet#27574
Obsoletes AutoTransactionsEnabled, replacing it with a new 3-valued enum. Closes dotnet#27574
Obsoletes AutoTransactionsEnabled, replacing it with a new 3-valued enum. Closes dotnet#27574
Obsoletes AutoTransactionsEnabled, replacing it with a new 3-valued enum. Closes dotnet#27574
Obsoletes AutoTransactionsEnabled, replacing it with a new 3-valued enum. Closes #27574
It might be worth mentioning that this exists near |
Is it possible to set it on the options not on Database? |
@voroninp no, but it's trivial to simply set the flag in the constructor of your DbContext type. |
True. Just got used to being able to configure such things in options. |
#27439 made us stop starting transactions where that isn't necessary (e.g. single-statement insertion). However, there may be cases where users still want a transaction to be created. For example, a user may be using a command interceptor to commit an additional row to the database (e.g. audit), and may want transactionality for the two rows.
Add a flag to allow users to get a transaction even when we don't require it.
The text was updated successfully, but these errors were encountered: