Logging is currently the most straightforward way of viewing what's being sent 
to the database. IBatisNet comes with a Console logger so you technically don't 
need to setup log4net to view the sql inside of nunit-gui.

What exactly are you wanting to do?


----- Original Message ----

From: Douglas Smith <[EMAIL PROTECTED]>

To: [email protected]

Sent: Monday, October 23, 2006 1:04:12 PM

Subject: viewing generated SQL without Log4Net?



Hi guys,

     

   I have read the manual, and the forums, and it looks like the only way to 
view the generated/prepared SQL statements is to log them, using Log4Net.

     

   Is this correct?  Is there a way to get to the CommandText  property of 
DBCommand object, for any given ISQLMapper command (QueryFor…, insert, select, 
etc).

     

   Is it possible to expose this property by tweaking the source code?

     

   I would really love to view the prepared SQL statement on the NUnit console 
output, and possibly elsewhere.

     

     

   

  







Reply via email to