This project has moved. For the latest updates, please go here.

EF6 Connection Resiliency / Retry Logic

Jun 8, 2015 at 7:32 PM
Any plans to implement EF6 Connection Resiliency / Retry Logic? More details about this feature here: https://msdn.microsoft.com/en-us/data/dn456835
Coordinator
Jun 25, 2015 at 12:52 PM
Dear Serge

I haven’t tested this yet.

However, given the fact pure EF is used under the hood, you should be able to provide your custom DbConfiguration [1] as you would using EF directly.

Regarding retrying execution strategy, however, there is an additional measure you need to take care of due to the limitations of this feature [2]. Since by default the data context is providing an ambient transaction scope, you probably have to override the CreateSavingTransactionScope-method in your data service to suppress the ambient transaction:
        protected override TransactionScope CreateSavingTransactionScope()
        {
            return new TransactionScope(TransactionScopeOption.Suppress);
        }
I would definitely be interested to read a short feedback of your experience you make in this.

Regards, Christof

[1] https://msdn.microsoft.com/en-us/data/jj680699
[2] https://msdn.microsoft.com/en-us/data/dn307226