Domain Modeling - Encapsulation

added by DotNetKicks
5/18/2022 5:15:06 AM

279 Views

Domain models should encapsulate logic operations so that there is only one way to perform a given logical operation. That means avoiding exposing entity state and ensuring operations flow through specific methods. By funneling specific operations through specific code pathways, you can be sure constraints around the operations are enforced.


0 comments