Logging SaveEntity calls

Posts   
 
    
azag123
User
Posts: 4
Joined: 12-Mar-2013
# Posted on: 29-May-2017 16:09:39   

Hello,

We are facing an issue where we are getting an error when using v5, DataAdapter - when making a call to SaveEntity we get an exception. In order to help trace this issue, I was wondering whether there is a convenient way to log the SQL that is being called when calling SaveEntity? (eg the Insert or Update statement that is generated).

Would tracing be an option here?

Or whether there is an exception hook to catch and display the query that is failing?

Thanks!

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 30-May-2017 00:27:55   

Yes, Tracing is available.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 30-May-2017 10:07:18   

Additionally, the exception, is always wrapped in a specific exception from our runtime, and if possible contains the failed query or entity causing it, see: https://www.llblgen.com/Documentation/5.2/LLBLGen%20Pro%20RTF/Using%20the%20generated%20code/gencode_exceptions.htm

and e.g. https://www.llblgen.com/Documentation/5.2/ReferenceManuals/LLBLGenProRTF/html/78D52C64.htm

Frans Bouma | Lead developer LLBLGen Pro