tagged [domain-driven-design]
Is Specification Pattern Pointless?
Is Specification Pattern Pointless? I'm just wondering if Specification pattern is pointless, given following example: Say you want to check if a Customer has enough balance in his/her account, you wo...
- Modified
- 15 Dec at 02:27
Where to call repository.update in DDD?
Where to call repository.update in DDD? I have a real scenario that is a perfect Domain Model design. It is a field that has multiple quadrants with different states on every quadrant. So my aggregate...
- Modified
- 10 Jan at 10:51
Generating identities for entities in DDD
Generating identities for entities in DDD ### Edit To further clarify my initial problem, I rewrote the question with more 'DDD'-termini, common patterns and discussion arguments. The orginal version ...
- Modified
- 9 Sep at 14:40
DTO vs. Domain Model, project organization
DTO vs. Domain Model, project organization I have a project with a repository, a service layer, using EF6 and code-first POCOs. In the CustomerRepository, I am doing several projection queries that re...
- Modified
- 6 Feb at 17:15
If repositories are for aggregate roots, where should data access logic for other entities go?
If repositories are for aggregate roots, where should data access logic for other entities go? I have a few objects that represent a web application. Currently I have a cluster object to represent a s...
- Modified
- 24 Feb at 15:56
Repository Pattern without an ORM
Repository Pattern without an ORM I am using repository pattern in a .NET C# application that does not use an ORM. However the issue I am having is how to fill One-to-many List properties of an entity...
- Modified
- 16 Feb at 17:57
Is caching a repository, domain or application concern?
Is caching a repository, domain or application concern? I am trying to figure out which layer should be responsible for the caching (insert/remove) work in a Domain Driven Design project. The goal is ...
- Modified
- 10 Aug at 10:25
Many-to-many relationships in DDD
Many-to-many relationships in DDD I'm new to DDD and I'm stuck with many-to-many relationships. E.g. we have two aggregate roots - Tasks and Workers. Contract is definitely not aggregate root, because...
- Modified
- 27 Apr at 15:14
If you are forced to use an Anemic domain model, where do you put your business logic and calculated fields?
If you are forced to use an Anemic domain model, where do you put your business logic and calculated fields? Our current O/RM tool does not really allow for rich domain models, so we are forced to uti...
- Modified
- 19 Dec at 16:33
Should Domain Entities be exposed as Interfaces or as Plain Objects?
Should Domain Entities be exposed as Interfaces or as Plain Objects? Should Domain Entities be exposed as Interfaces or as Plain Objects ? The User Interface : The User Implementation (Implemented int...
- Modified
- 28 Feb at 21:15
Strongly typed mapping. Lambda Expression based ORM
Strongly typed mapping. Lambda Expression based ORM What do you think of the following table mapping style for domain entities? ``` class Customer { public string Name; } class Order { public TotallyC...
- Modified
- 30 Dec at 08:55
How to pass Current User Information to all Layers in DDD
How to pass Current User Information to all Layers in DDD Similar questions have been asked before but not quite the same (unless I missed it) I want to pass IUserInfo class instance through my Servic...
- Modified
- 19 Oct at 02:50
What is the difference between domain objects, POCOs and entities?
What is the difference between domain objects, POCOs and entities? I was under the impression they are all basically the same. Are model objects also the same? Right now, in my architecture, I have: `...
- Modified
- 29 Sep at 21:20
DDD Infrastructure services
DDD Infrastructure services I am learning DDD and I am a little bit lost in the Infrastructure layer. As I understand, "all good DDD applications" should have 4 layers: Presentation, Application, Doma...
- Modified
- 15 Mar at 13:46
Should I validate inside DDD domain project?
Should I validate inside DDD domain project? I want to validate my domain model entities using [FluentValidation](https://www.nuget.org/packages/FluentValidation/). I have read [an answer about valida...
- Modified
- 24 Sep at 13:19
Domain Driven Design, .NET and the Entity Framework
Domain Driven Design, .NET and the Entity Framework I'm new to domain driven design but want to learn it and use it for a new application. I will be using Entity Framework for data access. The basic l...
- Modified
- 16 Jan at 20:59
What methods should go in my DDD factory class?
What methods should go in my DDD factory class? I am struggling to understand what my factory class should do in my DDD project. Yes a factory should be used for creating objects, but what exactly sho...
- Modified
- 4 Mar at 15:6
Is it possible to use DDD and BDD together?
Is it possible to use DDD and BDD together? I like the middle-out development that is achieved with DDD. Development is driven by domain, the most solid part of application. We don't depend on infrast...
- Modified
- 22 Aug at 13:11
TDD, DDD and Encapsulation
TDD, DDD and Encapsulation After several years of following the bad practice handed down from 'architects' at my place of work and thinking that there must be a better way, I've recently been reading ...
- Modified
- 3 Jul at 08:18
Implement a generic repository pattern using old ado.net
Implement a generic repository pattern using old ado.net I am trying to implement the repository pattern using ado.net because of platform limitation. ``` public interface IGenericRepository : IDispos...
- Modified
- 23 May at 21:52
Onion Architecture
Onion Architecture I am setting up a project structure for an upcoming internal application trialling the Onion Architecture proposed by Palermo ([http://jeffreypalermo.com/blog/the-onion-architecture...
- Modified
- 21 Jul at 05:32
MVVM: Binding to Model while keeping Model in sync with a server version
MVVM: Binding to Model while keeping Model in sync with a server version I've spent quite some time to try and find an elegant solution for the following challenge. I've been unable to find a solution...
- Modified
- 3 May at 18:24
DDD: Entity identity before being persisted
DDD: Entity identity before being persisted In Domain Driven Design, one of the defining characteristic of an Entity is that it has an identity. I am not able to provide a unique identity to Entities ...
- Modified
- 21 Jan at 06:27
Where should I put a unique check in DDD?
Where should I put a unique check in DDD? I'm working on my first DDD project, and I think I understand the basic roles of entities, data access objects, and their relationship. I have a basic validat...
- Modified
- 15 Jun at 20:51
EF code first: How to delete a row from an entity's Collection while following DDD?
EF code first: How to delete a row from an entity's Collection while following DDD? So here's the scenario: DDD states that you use a repository to get the aggregate root, then use that to add/remove ...
- Modified
- 20 Jul at 16:31