Setting a related entity event issue

Posts   
 
    
Answer
User
Posts: 363
Joined: 28-Jun-2004
# Posted on: 08-Jul-2006 00:37:13   

I could really use an event that fires when a related entity is set. Should setting a related entity trigger the PropertyChanged event being that it is a property on the entity?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 08-Jul-2006 00:49:08   

V2 has these: OnRelatedEntitySet and OnRelatedEntityUnset simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Answer
User
Posts: 363
Joined: 28-Jun-2004
# Posted on: 11-Jul-2006 17:25:40   

Yes, but they are not public events that an external object could subscribe to..

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 11-Jul-2006 17:41:28   

No, protected methods. So in order you override the method so you know when the associated customer changes.

Frans Bouma | Lead developer LLBLGen Pro
pilotboba
User
Posts: 434
Joined: 05-Aug-2005
# Posted on: 11-Jul-2006 17:48:30   

Answer wrote:

Yes, but they are not public events that an external object could subscribe to..

You could always create public events and raise them in the Entity.

Bob