The result is that when the FName property changes, the event is also raised for the Name property.

After applying the [Field] attribute to both the FName and LName properties it has come to my understanding that DO already fires the INotifyPropertyChanged event and my [PropertyChanged] attribute is ignored. (The visual studio debugger no longer reaches my code.)

The way my [DependsOn] attribute worked was from within the code that handled the [PropertyChanged]. It looked for any property in the current instance and determined whether the attribute existed. I can probably find a way to get around this, but is there already an existing attribute hidden in the massive DO code base that achieves the same thing?

edit: I noticed something else. If I apply my [PropertyChanged] attribute to a property that's not marked as [Field] the event is no longer raised for that property either.

I modified my ChangeNotifierAttribute. I know that Entity implements PropertyChanged, so all I needed was the name of the function used to raise the event. I found this in another question on this support board.

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!