Hi,
I´m learning .NET and NHibernate now. I´m with problem.
The NHibernateUtil.Initialize and NHibernateUtil.IsInitialize doesn´t work
for me. For example the method to get a class with attributes that are classes too:
Code:
Company Company = (Company) session.Get(typeof(Company), pId);
if (!NHibernateUtil.IsInitialized(Company.Group))
NHibernateUtil.Initialize(Company.Group);
I try to initialize the Group, but this object is with the null attributes.
When I pass to the line if (!NHibernateUtil.IsInitialized(Company.Group)),
It doesn´t enter on the if block to initialize, but all attributes are null.
What happens in this case???
thank you.