Hi everyone,
I am experiencing a problem with session caching. I will explain my setup first:
1) I have a class called Facility which has an ISet (one-to-many) of Schedule classes.
2) All my classes are virtual because I ned to pre-load only the many-to-one properties of my choice (not the entire object graph).
3) the ISession in my asp.net application persists (is cached) for the entire asp.net session
Now, here is my problem:
Whenever I save a new Schedule object the Facility object in NHibernate's session does not get updated to show this new schedule object in its ISet of schedules. I have to stop the asp.net session and log in again before I can see this new schedule.
Any ideas?
Thanks
|