SyncFKFields

Posts   
 
    
mikeg22
User
Posts: 411
Joined: 30-Jun-2005
# Posted on: 16-Feb-2007 04:52:57   

version 1.0.2005.1 (July 6 2006)

In EntityBase2.SyncFKFields, why aren't the PropertyChanged events fired off when a foreign key changes? Is the OnPropertyChanged sub supposed to be called from somewhere else?

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 16-Feb-2007 08:10:55   

How do you chnge the FK? would you please post a code snippet, that explains your issue. Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 16-Feb-2007 09:21:17   

The events are raised in v2.0 and not in v1.x. The change was made in v2.0 because it's a breaking change: if suddenly events were raised from one build to the other, it could change behavior of the application.

Frans Bouma | Lead developer LLBLGen Pro
mikeg22
User
Posts: 411
Joined: 30-Jun-2005
# Posted on: 16-Feb-2007 16:50:44   

Walaa wrote:

How do you chnge the FK? would you please post a code snippet, that explains your issue. Thanks

The change to the FK was by setting a related entity either by adding to a collection on one side or setting a property on the other side of an entity relation. I was just surprised to see the databinding not reflect the change in the FK disappointed

mikeg22
User
Posts: 411
Joined: 30-Jun-2005
# Posted on: 16-Feb-2007 16:51:16   

Otis wrote:

The events are raised in v2.0 and not in v1.x. The change was made in v2.0 because it's a breaking change: if suddenly events were raised from one build to the other, it could change behavior of the application.

Understood...one more reason to move to 2.0 simple_smile