© Nick Harrison 2017

Nick Harrison, Code Generation with Roslyn, 10.1007/978-1-4842-2211-9_2

2. Putting Business Logic in Tables

Nick Harrison

(1)Lexington, South Carolina, USA

A Catalog of Business Logic Tables

Broadly speaking, logic tables will fit into a couple of basic types. In this chapter, we identify four types of logic tables:

  • Simple lookup table

  • Input table with multiple parameters (decision table)

  • Compound decision table

  • Expression decision table

For each of these types, we will explore what they look like, discuss when they may be applicable, and step through some of the implementation details for proper implementations.

Simple Lookup Table

Lookup tables are often overlooked as a repository for business logic. Often they are viewed as nothing ...

Get Code Generation with Roslyn now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.