If I want to compile my LINQ->SQL classes into a DLL to provide to my developers, how can I make it so that they can still hook into the various entity partial methods (OnValidate, for example)? I know that you cannot implement partial methods on a compiled assembly, but any suggestions on how I can extract this behavior (perhaps with events?) would be appreciated.
Share
You may need to customize this solution for your needs, but a simple way of publishing events from partial methods can be done like so:
You may or may not need to pass along different parameters, but the
Actionwill support numerous.