ExecutionStrategy Error

Akshitha

New member
Joined
Feb 27, 2024
Messages
1
Programming Experience
3-5
Any idea on the below warnings/error

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.
[14:58:00 ERR] An exception occurred while iterating over the results of a query for context type 'xxxx.Repository.xxxContext'.
 
Can you show us the code that generates the error?

For the record, when you are provided with type and/or member names like that, one of the first things you should do is read the relevant documentation. You won't necessarily find what you need or understand what you find but that's not a reason not to try. The documentation for the CreateExecutionStrategy method contains a link to here, which seems like something worth reading.
 
Back
Top Bottom