In WPF, there is the concept of two-way data binding, where when the value of an object property is updated in db, it also updates the view when the INotifyPropertyChanged interface is INotifyPropertyChanged .
I am looking for something like this function in C # but I am not using WPF.
The scenario is that when the property of an object is updated, a series of notifications is sent to other users of this object, notifying them of a change in the property.
So the thread:
- Database update
- Notify Consumer 1
- Notify Consumer 2
This process requires three separate lines. Is there a way to implement the WPF concept for a property modified for an update, no matter who the consumer (say, event driven) is without having to explicitly notify consumers?
source share