![]() When an important process or transformation in a domain is not the natural responsibility of an entity or value object, an operation is added to the model as a separate interface and defined as a service.Define the interface according to the model language and ensure that the operation noun is part of the common language.Make the service stateless. You already know what entities and value objects are.As basic building blocks, they should contain the vast majority of business logic for any application.However, there are some scenarios where entity and value objects are not the best solution.Let's take a look at what Eric Evans mentioned in his book Domain Driven Design: A Way to Cope with Software Core Complexity:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |