The Table Module Pattern

The TS pattern envisions the domain logic as a series of transactions triggered by the presentation. Subsequently, modeling the domain logic means mapping transactions onto methods of one or more business components. Each business component then talks to the DAL either directly or through relatively dumb data objects. The logic is implemented in large chunks of code that can be difficult to understand, maintain, and reuse.

When you partition transaction scripts into business components, you often group methods by entity. For example, you create an OrderAPI business component to house all transaction scripts related to the "order" entity. Likewise, you create a CustomerAPI component to expose all methods related to action ...

Get Microsoft® .NET: Architecting Applications for the Enterprise now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.