Is there any monitor that shows me the sql script at runtime?
For example, during the debug, I would like to see how the script was mounted by the following code:
var q = (from proc in
Sessao.Query<Processo>()
Sessao.Query<MovimentoEsparta>() where mov.DtHrMov >=
dtInicial && mov.DtHrMov < dtFinal && e.CodDoc ==
mov.CodDoc select mov.CodDoc).Any())
from psa in Sessao.Query<ProcessoSituacaoAtual>()
from mpf in Sessao.Query<EspartaMpf>()
where proc.CodDoc == psa.CodDoc
&& proc.CodDoc == mpf.CodDoc
&& proc.CodTipProc != 388
&& proc.CodTipProc != 399
&& proc.DtAutua >= dtInicial
&& proc.DtAutua < dtFinal
select new
{
proc.NumAno,
proc.CodDoc,
DtHrAutuacao = proc.DtAutua,
ClasseCnj = proc.CodTipProc
});
Is this possible? Detail: Using NHibernate with Oracle Database with VS2013 Professional IDE (C #)