I'm currently working on a pretty basic application that uses Linq-to-SQL classes. I've been adding new methods and properties to the auto-generated dataclasses by leveraging the fact that they are "partial." However, now I would like to actually modify the code contained in one the class methods - namely, SendPropertyChanged().
The simplest way I can see to do this is by modifying the code in the auto-generated .designer.cs file itself, but I can see how this is quite dangerous (because the code may be overwritten by the code generator). Is there an alternative way for me to safely modify the code?
EDIT: Why I wish to do this: I want to add a property "isDirty" that is set whenever any of the fields are changed. Since whenever a field is changed, it calls the SendPropertyChanged method, I figured I would just stick "isDirty = true" in there (with appropriate checks).