-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: WindowsForm dirty
PostPosted: Sun Feb 25, 2007 2:21 pm 
Newbie

Joined: Sun Sep 10, 2006 12:27 pm
Posts: 13
Hi

I am using NHibernate in a WindowsForm application.
I have this problem: I would like to be able to know, in every moment, if the fom is in state dirty, that is if there are changes waiting for to be saved, I thought about using Interceptor but I don't know how.

Thank in advance
Giorgio


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 26, 2007 12:48 pm 
Regular
Regular

Joined: Fri Jan 27, 2006 2:32 pm
Posts: 102
Location: California, USA
You can use ISession.IsDirty() to see if the session has any changes that are unsaved.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 26, 2007 8:45 pm 
Newbie

Joined: Sun Sep 10, 2006 12:27 pm
Posts: 13
pelton wrote:
You can use ISession.IsDirty() to see if the session has any changes that are unsaved.


Thanks it is really what I wanted!
Giorgio


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.