O'Reilly logo

Applying Domain-Driven Design and Patterns: With Examples in C# and .NET by Jimmy Nilsson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Let the Rules Rule

In the last chapter, we took a nice break and looked at some infrastructure preparations. Now we’ll return to the core model for a chapter. This chapter is about rules.

The topic of rules is a huge one. We will deal with part of it, focusing mainly on validation rules. We will do it by addressing the requirements defined in Chapter 4, “A New Default Architecture,” and add some comments where appropriate.

Looking back at the requirements list in Chapter 4 (the list will be repeated shortly), we can clearly see that the majority of the requirements have something to do with rules. As I see it, this is one area where Domain Models really shine. We can go quite a long way without needing a rules engine. As Evans says ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required