New Posts New Posts RSS Feed: How to monitor EntityState?
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

How to monitor EntityState?

 Post Reply Post Reply
Author
katit View Drop Down
Senior Member
Senior Member


Joined: 09-Sep-2011
Posts: 146
Post Options Post Options   Quote katit Quote  Post ReplyReply Direct Link To This Post Topic: How to monitor EntityState?
    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.
Back to Top
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 715
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post 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 for more info.


Edited by DenisK - 14-Jan-2012 at 1:59pm
Back to Top
katit View Drop Down
Senior Member
Senior Member


Joined: 09-Sep-2011
Posts: 146
Post Options Post Options   Quote katit Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down