Relative Content

Tag Archive for domain-model

How to deal with data on the model specific to the technology being used?

There are some cases where some of the data on a class of the domain model of an application seems to be dependent on the technology being used. One example of this is the following: suppose we are building one application in .NET such that there’s the need of an Employee class. Suppose further that we are going to implement relational database, then the Employee has a primary key right? So that the classe would be something like

DDD Model to handle Localizations

I’m trying to refine my domain model for the internationalization feature, I wanted to get your input on the best approach to structuring Culture and Localization entities following Domain-Driven Design principles.

ddd enforce business rule

Am struggling to identify whenever to create new domain service or capture business rules in my domain model.
Assume we cannot assign Account to Invoice if Account IsInactive or Blocked

Handling “unspecified” values in software

So I’m working on a software product where we have a number of fields that the customer can leave blank, some of which are numeric. To persist these in the database we use nullable columns. Easy peasy.