I have a property auto-generated from database in my edmx: Description. I then create a "partial class" .cs file for the entity and add a read-only property: ShortDescription. ShortDescription's getter simply processes Description (removes line feed, carriage return, etc).
How can I raise property change notification for ShortDescription on the setter of Description?
Thanks!
This is going to be a hack, but it can be done.
First, you need to override
ReportPropertyChangingandReportPropertyChanged. Then check the parameter for the name of your property... in this case "Description". If it occurs, callReportPropertyChangingorReportPropertyChangedwith the derived property name, in this case "ShortDescription". For any other value of the parameter, call the base version ofReportPropertyChanging/Changed.Edit: For example: