Print Page | Close Window

How to monitor EntityState?

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3213
Printed Date: 23-Jan-2026 at 2:46am


Topic: How to monitor EntityState?
Posted By: katit
Subject: How to monitor EntityState?
Date Posted: 12-Jan-2012 at 6:43pm
I'm working with entity in my ViewModel and need to run certain actions based on EntityState.
 
Ideally I'd like to subscribe to some kind of event to know when
MyEntity.EntityAspect.EntityState get's changed by some action
 
Is there any build-in functionality I can use for that?



Replies:
Posted By: DenisK
Date Posted: 14-Jan-2012 at 1:56pm
Hi katit,

Sounds like you may want to work with EntityChanging or EntityChanged or EntityAspect.PropertyChanged event. See  http://drc.ideablade.com/xwiki/bin/view/Documentation/entity-events - http://drc.ideablade.com/xwiki/bin/view/Documentation/entity-events  for more info.


Posted By: katit
Date Posted: 17-Jan-2012 at 4:58pm
Thank you! I will give it a try. For now I found simpler workaround that doesn't involve subscribing to events.



Print Page | Close Window