Thanks John, Because I was not aware how can I see SQL output of NHiberante, I used MS SQL Profiler. It was a pain because other clients were sending SQL statements too, but finally I realized that NHibernate lazy loading is working greatly.
Afshar Mohebbi On Apr 22, 5:22 pm, John Davidson <[email protected]> wrote: > Your test runner console should show sql output if you have configured > NHibernate to show sql output. If you don't have unit tests then you really > should build some and that will provide you with the answers and a better > implementation! > > However you could try Ayende's tool - NHProf, which may also help you build > a better application. > > Finally, you could have have your NHibernate log configured to capture all > sql output, and if you don't have a log then you need to build one, at least > for use in devlopment. > > John Davidson > > On Thu, Apr 22, 2010 at 10:14 AM, Afshar Mohebbi > <[email protected]>wrote: > > > > > Hi all, > > > Recently we upgraded from NHibernate 1.0.2 to > > 2.1.2<http://afsharm.blogspot.com/2010/02/upgrading-nhibernate-102-to-212.html>. > > We then enabled lazy loading in it, but I don't know how to check if lazy > > loading is working properly? I tried Sql Server Profiler, but it shows so > > many several information that I could not be sure if my lazy loading works > > fine or not. > > > Regards, > > Afshar Mohebbi > >http://afsharm.blogspot.com > > > -- > > You received this message because you are subscribed to the Google Groups > > "nhusers" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<nhusers%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/nhusers?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/nhusers?hl=en. -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
