Generated code - Tapping into actions on entities and collections

Preface

With .Net 2.0, partial classes are a reality. This gives the ability to write code in a separate file which will be merged at compile time with an existing code file. To be able to extend the generated code to its fullest, it's key that the developer can override a set of routines which are called by the generated code to perform additional things, like do additional initialization or perform actions when a related entity is set or unset.

In the framework there are a lot of areas where a developer might want to add code. Below, you'll find two lists: one for events and one for methods to override. Every defined element has a description and when the method is called or the event is raised as well as the the purpose of the element so the user can choose the right method/event to use.

Users of .NET 1.x can also override the methods, for example in user code regions or a in derived class of an entity, or through an include template.

Events

Overridable methods


LLBLGen Pro v2.6 documentation. ©2002-2008 Solutions Design