Polly icon indicating copy to clipboard operation
Polly copied to clipboard

Use Polly with EF Core 3.1

Open sameer-kumar opened this issue 4 years ago • 0 comments

Summary: What are you wanting to achieve? I'm looking for inputs and hopefully some reference implementation to use Polly with EF Core 3.1. My AspNetCore application uses Azure SQL with EF and repository pattern. I want to use Polly with RetryAndWait policy for Azure SQL requests beginning with initial connection. I have read that EF Core 3.1 supports EnableRetryOnFailure execution strategy on DbContext. However, I want to see if I can use Polly instead to be consistent with other areas of my application like webApi calls.

What code or approach do you have so far?
I tried google but couldn't find anything. So not sure if I'm thinking on right lines or its completely absurd.

Any insights or feedback is appreciated. Thanks!

sameer-kumar avatar Sep 16 '21 16:09 sameer-kumar