Conversion using factory class pattern (deprecated)
Most uses of the factory class pattern have been or will be replaced with use of the composition root pattern to handle dependency injection. The information related to conversion using the factory class pattern has been moved to this appendix as a reference for any usages still present.
To illustrate the breakdown of a converted stored procedure to C#, see the images shown. The diagram depicts how a stored procedure-based IDO method becomes a hand-coded assembly method during the conversion process. In the model that uses the factory class pattern, the extension and factory classes, and the interface are the means to execute the application class. It is the application class that contains business logic and is the C# equivalent of the T-SQL stored procedure. Most extensibility tasks are likely to occur within the application class.