Interception the sql

1 view
Skip to first unread message

Bruno Lima

unread,
Jul 1, 2009, 8:39:05 PM7/1/09
to nhu...@googlegroups.com
Hello.
 
 Is there way to intercepting the sql that is sending to data base?
 
I want to do like the EmptyInterceptor does with the Entities.
 
Sorry,  but I´m a newbie.
 
Thank you.
 
Bruno.
 
 

Fabio Maulo

unread,
Jul 2, 2009, 12:07:13 AM7/2/09
to nhu...@googlegroups.com
What?

2009/7/1 Bruno Lima <brul...@gmail.com>



--
Fabio Maulo

Fabio Maulo

unread,
Jul 2, 2009, 12:10:24 AM7/2/09
to nhu...@googlegroups.com
Sorry Bruno.
Try to explain what you need without talk about the solution that you think had found.

2009/7/2 Fabio Maulo <fabio...@gmail.com>



--
Fabio Maulo

Dario Quintana

unread,
Jul 2, 2009, 12:32:36 AM7/2/09
to nhu...@googlegroups.com
You can use Log4net to see what SQL is sent to the DB
http://www.davesquared.net/2008/01/viewing-sql-generated-by-nhibernate.html
--
Dario Quintana
http://darioquintana.com.ar

Bruno Lima

unread,
Jul 2, 2009, 4:32:33 PM7/2/09
to nhu...@googlegroups.com
Well in this link(http://www.infoq.com/news/2008/08/nhibernate2-arrived) there is a mention to AbstractBatcher class and its description is: " now use the Interceptor to allow the user intercept and change an SQL before it's preparation"
 
Then...
 
How Can I utilize this class to intercept the sqls?
 
Thank again.
 
Bruno.

2009/7/2 Dario Quintana <cont...@darioquintana.com.ar>

Fabio Maulo

unread,
Jul 2, 2009, 6:19:49 PM7/2/09
to nhu...@googlegroups.com
Ah ok, you like the answer without explication.
The answer is:



--
Fabio Maulo
Reply all
Reply to author
Forward
0 new messages