Increasing CommandTimeout Value

Posts   
 
    
Veettil
User
Posts: 3
Joined: 09-Nov-2016
# Posted on: 09-Nov-2016 18:47:04   

We are using LLBLGen assemblies with Atlas v6.0. Some of our reporting queries (backend is ERP) are quite complex and takes more than a minute to execute. I see that the command timeout property on llblgen assembly is set to 30 seconds. Is there a way to increase this value to prevent the queries from being timed out?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 10-Nov-2016 05:58:46   

Yes, you can

If you are using SelfService, see this If you are using Adapter, see this.

Cheers

David Elizondo | LLBLGen Support Team
Veettil
User
Posts: 3
Joined: 09-Nov-2016
# Posted on: 16-Nov-2016 19:29:53   

Added on Nov 16th* Thanks, I was able to override the timeout value. However when I generate the source code after adding a new field to the entity, the entire source code gets regenerated which overwrites my method that I have added to override the time out value. Is there a way to retain the custom code from being overwritten every time source code is generated from llblgen?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 16-Nov-2016 21:23:12   

Create a partial class is usually the right way to go simple_smile Add your custom code there. It's not overwritten next time you generate code simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Veettil
User
Posts: 3
Joined: 09-Nov-2016
# Posted on: 16-Nov-2016 22:05:13   

Awesome! That worked. Thank You.