I start at both WCF and NHibernate. However, I need to make a small project that includes several services (made with WCF) and a constant level (made with NHibernate).
My problem is using ISession and ISessionFactory. I read (and saw) that creating an ISessionFactory is very difficult (and thread safe). So, I think that I could only instantiate this class once at runtime. I'm right?
My problem is more about the ISession class. I donβt know exactly with what granularity I should use it. I think I should use / create one instance for each service call (I use "services for every call"). Again, am I right?
nhibernate wcf
source share