OnPropertyChanged generated method

Posts   
 
    
Roeesc
User
Posts: 8
Joined: 05-Mar-2015
# Posted on: 05-Mar-2015 09:42:44   

I am using v4.2 version with MSSQL 2008R2 DB. After generating entities objects from DB I have seen that not every property in the generated entity objects includes raising property changed event when change is detected Although the event defined in the entity base class. Some properties has it however.

1.Is this some default generation behavior? 2. Which objects will include this implementation by default? 3. How can I get this implemented for all entities properties? 4. Is there any example\examples which involves WPF + MVVM + Prism + WCF working with LLBLGEN pro generated entities?

Thanks,

Roee

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 05-Mar-2015 15:57:15   

Do you mean some entityFields properties doesn't raise this event when changed, or are you speaking about other (non entityfields) properties?

Roeesc
User
Posts: 8
Joined: 05-Mar-2015
# Posted on: 05-Mar-2015 16:26:25   

I am talking about generated entities, I didn't actually try it but was looking on the generated code looking for OnPropertyChanged method calls but didn't see it in most of the entities.

Roee

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 05-Mar-2015 18:40:13   

Please give a code example, of where do you think the call to raise the event is missing.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 06-Mar-2015 09:22:18   

All changes to values of fields will raise the PropertyChanged event. Changes in navigators will raise PropertyChanged and changes to Fields mapped onto related fields will raise the event.

the changes to fields are detected in the base class, so it's not in the generated code.

Frans Bouma | Lead developer LLBLGen Pro