Custom Properties on Entities, NotifyPropertyChanged

Posts   
 
    
kafka
User
Posts: 1
Joined: 05-Apr-2012
# Posted on: 05-Apr-2012 11:10:32   

Hi!

Usually we create custom properties to our entity classes. So we create a new partial entity class and add our custom properties there. We want to separate our code from the generated code. These properties usually isn't connected to anything in the db.

For these properties to update the UI when they get new values we usually use the method NotifyPropertyChanged with the property name as parameter.

We realized now that we don't have access to this method in our entity classes.

Is there any other way we should do this?

Regards,

Christian

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 05-Apr-2012 22:05:00   

Hi Christian,

You can use OnPropertyChanged("YourCustomProperty"), which inside, raises the event handler. EntityBase2 implements INotifyPropertyChanged.

David Elizondo | LLBLGen Support Team