Hi guys,
We are working on a large NHibernate based, N-Tier structured project.
I've recently discovered the method GetSessionImplementation() on the ISession, which returns an ISessionImplementor. I couldn't find much documentation on this interface, but it seem to contain very useful methods such as IsDirty, IsSaved etc.
I wanted to ask if it is considered good practice to use the ISessionImplementor methods in the application code (in the DAL layer only) - for example, when I need to know if an entity object in newly created, to get an entity identifier, to check if an entity object is dirty etc ?
I'll be grateful for any reply and any more information you can give about this interface and recommendation on how to use it.
Many thanks!
Chen.
|