Contents
How to create entity classes in Domain Driven Design?
Creating Domain-Driven Design entity classes with Entity Framework Core ( this article) Three approaches to Domain-Driven Design with Entity Framework Core – looks at different ways of implementing DDD in EF Core.
How are domain entities used in domain modeling?
Entities are pretty much the bread and butter of domain modeling. These are some of the primary trait of entities. Entities should be the first place that we think of to put domain logic.
How to implement a domain model in.net?
If you open any of the files in an aggregate folder, you can see how it is marked as either a custom base class or interface, like entity or value object, as implemented in the SeedWork folder. You implement a domain model in .NET by creating POCO classes that implement your domain entities.
How to configure domain classes in EF Entity Framework?
Another way to configure domain classes is by using Entity Framework Fluent API. EF Fluent API is based on a Fluent API design pattern (a.k.a Fluent Interface) where the result is formulated by method chaining . Fluent API configuration can be applied when EF builds a model from your domain classes.
Where to place business logic in Domain Driven Design?
Entities are the first natural place we should aim to place business logic in domain-driven applications. In this article, we talk about the roles and lifecycle of an entity in Domain-Driven Design. This is part of the Domain-Driven Design w/ TypeScript & Node.js course.
How to apply a domain driven design ( DDD ) approach to data persistence?
This article is about how to apply a Domain-Driven Design (DDD) approach to the classes that the Entity Framework Core (EF Core) library maps to a database. This article is about why DDD is useful with a database, and how you can implement a DDD approach to data persistence classes using EF Core.
What are the principles of Domain Driven Design?
Domain-Driven Design(DDD) is a collection of principles and patterns that help developers craft elegant object systems. Properly applied it can lead to software abstractions called domain models. These models encapsulate complex business logic, closing the gap between business reality and code.