Skip to content
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

Received exception when performing transaction #3812

Closed
KSchlobohm opened this issue Apr 7, 2022 · 1 comment · Fixed by #3814
Closed

Received exception when performing transaction #3812

KSchlobohm opened this issue Apr 7, 2022 · 1 comment · Fixed by #3814
Assignees
Milestone

Comments

@KSchlobohm
Copy link

Following the guidance in this section returned an exception.

System.InvalidOperationException: The configured execution strategy 
'SqlServerRetryingExecutionStrategy' does not support user initiated transactions. 
 Use the execution strategy returned by 'DbContext.Database.CreateExecutionStrategy()' 
 to execute all the operations in the transaction as a retriable unit.

I think a note, or callout, to the other approach to addressing this issue could be added to the Controlling transactions section to help others find this link that resolved the exception.

https://docs.microsoft.com/en-us/ef/core/miscellaneous/connection-resiliency#execution-strategies-and-transactions


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@roji
Copy link
Member

roji commented Apr 11, 2022

@KSchlobohm makes sense, I submitted #3814 to add such a note.

@roji roji self-assigned this Apr 11, 2022
@roji roji added this to the 7.0.0 milestone Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants