Key to adding business logic is realizing the power of partial classes and partial methods (lightweight events).

So in a nutshell you want to add custom code to a new source file that was not originially generated by your OR product. Also realize what hooks exist out of the box with partial methods.