IMHO I do not think that eviction is the solution in your case, since v does not belong to the 2nd session (so if you evict all vehicles, itβs not enough).
My suggestion is to attach v to the second session, for example:
... using (ISession session = MyNHibernateSession()) { session.Lock(v, LockMode.None);
Martha
source share