New Posts New Posts RSS Feed: OnPropertyChanged
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

OnPropertyChanged

 Post Reply Post Reply
Author
rbautistaole View Drop Down
Newbie
Newbie


Joined: 01-Apr-2011
Posts: 37
Post Options Post Options   Quote rbautistaole Quote  Post ReplyReply Direct Link To This Post Topic: OnPropertyChanged
    Posted: 12-Jul-2012 at 4:19pm
I have a codefirst model. I need to set a property value when another property is changed. Since with codeFirst style the PostSharp decorate my entity, Why is not a OnPropertyChanged created in my entity? Which is the suggested way to business rules on property changes? Using property interceptors?
 
thanks
 
Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 13-Jul-2012 at 2:53pm
Hi,
 
 
Regards,
   Silvio.
Back to Top
rbautistaole View Drop Down
Newbie
Newbie


Joined: 01-Apr-2011
Posts: 37
Post Options Post Options   Quote rbautistaole Quote  Post ReplyReply Direct Link To This Post Posted: 13-Jul-2012 at 6:25pm
ok, but by make this suggestion im replacing the total implementation and i canĀ“t call the injected implementation.
 
Do you see some problem by use an interceptor? i remember tha i read an article from devforce discouraging the use of interceptors in such case.
 
regards.
 
 
 
Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 16-Jul-2012 at 2:40pm
I'm not sure what you mean by "can't call the injected implementation".
 
In Code First, this is the only way you can implement your OnPropertyChanged event.
 
Regards,
   Silvio.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down