Re: Why AR is Updating When Performing a Select

2009-07-10 Thread Darius Damalakas
:31 AM   Subject: Re: Why AR is Updating When Performing a Select   you can add an PreUpdateEventListener and compare the cached and actual object states to find the changes.   -Markus   2009/7/9 Cesar Sanz the.email.tr...@gmail.com     Hello markus and Thanx     using (new SessionScope

Re: Why AR is Updating When Performing a Select

2009-07-09 Thread Markus Zywitza
When AR/NH loads entities, it puts them into a cache. When the session(scope) disposes, the objects in the cache are checked whether they have been changed and the changes are written back (flushed) to the DB. Normally, if there is no change in the objects, nothing happens (the entities are not

Re: Why AR is Updating When Performing a Select

2009-07-09 Thread Cesar Sanz
-users@googlegroups.com Sent: Thursday, July 09, 2009 12:02 AM Subject: Re: Why AR is Updating When Performing a Select When AR/NH loads entities, it puts them into a cache. When the session(scope) disposes, the objects in the cache are checked whether they have been changed and the changes

Re: Why AR is Updating When Performing a Select

2009-07-09 Thread Markus Zywitza
to check if my entity is dirty? Can NHibernate shows me the changes... Thanx for answering - Original Message - *From:* Markus Zywitza markus.zywi...@gmail.com *To:* castle-project-users@googlegroups.com *Sent:* Thursday, July 09, 2009 12:02 AM *Subject:* Re: Why AR is Updating

Re: Why AR is Updating When Performing a Select

2009-07-09 Thread Cesar Sanz
Sent: Thursday, July 09, 2009 9:31 AM Subject: Re: Why AR is Updating When Performing a Select you can add an PreUpdateEventListener and compare the cached and actual object states to find the changes. -Markus 2009/7/9 Cesar Sanz the.email.tr...@gmail.com Hello markus and Thanx

Why AR is Updating When Performing a Select

2009-07-08 Thread the.email.tr...@gmail.com
Hello.. I am in a hurry cuz I have to release a small project. I use AR for this project, my model is simple, [Client] has many [Product] This is used in a web application, so a new session is opened on each request. The point is.. when I perform a Client.FindAll() it select all the clients