NHibernate

NHProf is a great too for profiling a NHibernate application. It is powerful and easy to use.

I used it for a long time, but recently I ran into troubles when I tried to capture DB queries in my newly started web application using NHibernate 3.0.

As many times before I downloaded latest NHibernate release, created a new web application, added a references to NHibernate.dll and all dependencies, added a reference to HibernatingRhinos.Profiler.Appender.dll and put a code, initializing NHProf - HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize(); in Application_Start.

After all that I expected NHPfrof be working smoothly, but all what I got was NHPfor window with no record, but indicating my application is being profiled:

igorz 27/02/2011 - 12:50

Our second fuseday took place on Sep 5.

The challenge was to built simple ASP.NET Time Tracker application similar to the one we use day by day.

We chose S#arp Architecture as a main framework.

igorz 21/09/2010 - 19:44

 NHibernate Workbench is a “HQL Intellisense thing”.

 

The current version is just able to load an existing mapping assembly, a configuration, help us to write an hql query, submit it to NH and see some results.

 

Links:

http://sourceforge.net/projects/faticalabshqled/

http://www.felicepollano.com/2010/05/19/NHibernateWorkbench.aspx

igorz 07/06/2010 - 15:05

Introduction
NHibernate gives you many alternative APIs for querying database. There is HQL, which is similar to SQL, Linq to NHibernate and finally ICriteria.
And once you start to use NHibernate in your project, you have to decide which API to use. Since NH 3.0 you have one more option. It is QueryOver API.
In this post I want to compare a usage of different APIs for a simple query.

igorz 09/02/2010 - 17:24
Syndicate content