Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > LLBLGen Pro Runtime Framework> How to disable automatic RecoveryStrategy for specific query
 

Pages: 1
LLBLGen Pro Runtime Framework
How to disable automatic RecoveryStrategy for specific query
Page:1/1 

  Print all messages in this thread  
Poster Message
Rosacek
User



Location:
CZ
Joined on:
18-Mar-2012 18:02:44
Posted:
133 posts
# Posted on: 06-May-2019 18:16:24.  
I use Adapter v4.2 and 5.5

Hi,
I override method CreateRecoveryStrategyToUse in DataAdapter to use recovery strategy automatically.

But now I have query where I do not want to use recovery strategy and I cannot find an easy way how to temporary disable "global" strategy for particular query.

The only way I found is to instantiate RecoveryStrategy having maxRetries=0 and set it to adapter.ActiveRecoveryStrategy but this is overkill.
  Top
Walaa
Support Team



Location:

Joined on:
21-Aug-2005 16:03:48
Posted:
14527 posts
# Posted on: 06-May-2019 23:54:03.  
Why don't you derive from Data Adapter, where you override the method.
Use the derived class when you need the Recovery Strategy, and use the base class where you don't need it.


  Top
Rosacek
User



Location:
CZ
Joined on:
18-Mar-2012 18:02:44
Posted:
133 posts
# Posted on: 07-May-2019 08:29:28.  
I derive from dataadapter.

Looks there is no simple way how to disable recovery strategy.
Ok I will live with it.
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37631 posts
# Posted on: 07-May-2019 09:13:34.  
It's indeed not a turn-key solution, we'll see what we can do about that in the future.

Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.