approaches to creating repositories and.how Repositories act as a facade over complex ORM queries.how DTOs can be used to stabilize an API.problems that occur when we don't encapsulate ORM data access logic.This type of logic is called " Data Access Logic".įor developers coming from building REST-ful CRUD APIs using MVC without much attention to encapsulating ORM data access logic, you'll learn: In DDD, the Repositories, Data Mappers and DTOs are a critical part of the entity lifecycle that enable us to store, reconsitute and delete domain entities. Perhaps one of the hardest aspects towards learning DDD is being able to determine just what that tool is needed for the particular task. Where do you handle handle domain logic? As close to the Entity as possible, otherwise domain services. What's responsible for handling validation logic? Value Objects. In Domain-Driven Design, there's a correct tool for every possible thing that needs to happen in the development of an object-modeled system. Check it out if you liked this post.Īlso from the Domain-Driven Design with TypeScript series. This is part of the Domain-Driven Design w/ TypeScript & Node.js course.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |