Hello,

I have a modal form witch lets the user modify a record. I'd like to
be able to commit changes when the form is closed with "OK" button and
rollback when the form is closed with "Cancel" button.

How would I do that ? Create a transaction scope in the form
constructor and dispose it when the form closes ?

What happends if I already have a session ?

And what SessionScope.Flush() is supposed to do  ? It seems like the
canges are send to the database only on Dispose()

Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to