NHibernate, Transaction rollback and Entity version?

When an Nbernate exception is thrown, you MUST throw away that session, as the state is not considered valid anymore.

When an Nbernate exception is thrown, you MUST throw away that session, as the state is not considered valid anymore. That implies re-getting the entities too.

Yes, seems like best practive is regetting the entities. However, that is not an option for me in this case (requires too much refact which we don't have budget for atm) WHat other options do I have? – MatteS Sep 4 '10 at 7:39 Maybe session.

Refresh or session.Merge. – Diego Mijelshon Sep 4 '10 at 11:40.

When an NHibernate exception is thrown, you MUST throw away that session, as the state is not considered valid anymore.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions