Know if a domain object is dirty

0 views
Skip to first unread message

Alessandro Palumbo

unread,
Nov 5, 2009, 7:55:23 AM11/5/09
to castle-pro...@googlegroups.com
Hi all, I'm quite new to Castel so sorry for the newbie question.
Is it possible to test if an object is modified and need to be saved?

Thank you

Alessandro

--
--
The box said "Requires Windows 95 or better." So I installed LINUX

Markus Zywitza

unread,
Nov 5, 2009, 9:00:54 AM11/5/09
to castle-pro...@googlegroups.com
If you are using SessionScope, you don't need to track this, as
NHibernate (which AR is built upon) does this automatically. If you
are not using SessionScope, AR cannot determine this.

-Markus

2009/11/5 Alessandro Palumbo <alex.p...@gmail.com>:

Alessandro Palumbo

unread,
Nov 5, 2009, 9:12:54 AM11/5/09
to castle-pro...@googlegroups.com
Yes i'm using SessionScope, but i need to know that information as
some operation in my app can be done only if the domain object is not
modified

/Alessandro

Markus Zywitza

unread,
Nov 5, 2009, 9:32:47 AM11/5/09
to castle-pro...@googlegroups.com

Alessandro C.

unread,
Nov 5, 2009, 4:25:59 PM11/5/09
to Castle Project Users
Wonderful! exactly what I needed. Thanks.

On 5 Nov, 15:32, Markus Zywitza <markus.zywi...@gmail.com> wrote:
> You could try this solution:http://nhforge.org/wikis/howtonh/finding-dirty-properties-in-nhiberna...
>
> -Markus
>
> 2009/11/5 Alessandro Palumbo <alex.palu...@gmail.com>:
>
>
>
>
>
> > Yes i'm using SessionScope, but i need to know that information as
> > some operation in my app can be done only if the domain object is not
> > modified
>
> > /Alessandro
>
> > On Thu, Nov 5, 2009 at 3:00 PM, Markus Zywitza <markus.zywi...@gmail.com> wrote:
>
> >> If you are using SessionScope, you don't need to track this, as
> >> NHibernate (which AR is built upon) does this automatically. If you
> >> are not using SessionScope, AR cannot determine this.
>
> >> -Markus
>
> >> 2009/11/5 Alessandro Palumbo <alex.palu...@gmail.com>:
>
> >>> Hi all, I'm quite new to Castel so sorry for the newbie question.
> >>> Is it possible to test if an object is modified and need to be saved?
>
> >>> Thank you
>
> >>> Alessandro
>
> >>> --
> >>> --
> >>> The box said "Requires Windows 95 or better." So I installed LINUX
>
> > --
> > --
> > The box said "Requires Windows 95 or better." So I installed LINUX- Nascondi testo citato
>
> - Mostra testo citato -
Reply all
Reply to author
Forward
0 new messages