I am wondering if there is a way of retreiving some progress indication when loading objects with lot of relations.
I buildt an application with a typical login-window, where I load the user-object from the database. Problem is that the user-object has a lot of relations, which slows down the time to login, and I can not use lazy-loading.
Now it would be ok if I could show to the user what is going on...
In the server application I have the following code:
Code:
session = sessions.OpenSession();
CotUser u = (CotUser) session.CreateCriteria(typeof(CotUser)).Add(Expression.Eq("Username", username)).List()[0];
session.Close();
Its obvious that the second row does all the work and takes all the time, but is there any way I could get some respons from NHibernate what objects are being loaded and so on?