domain-driven-design Questions
4
Solved
i have this ValueObject :
public class Access : ValueObject<Access>
{
public string ControllName { get; set; }
public string ActionName { get; set; }
private Access()
{
}
public Acce...
Saffren asked 9/3, 2020 at 12:44
5
In my limited experience, I've been told repeatedly that you should not pass around entities to the front end or via rest, but instead to use a DTO.
Doesn't Spring Data Rest do exactly this? I've ...
Arundinaceous asked 10/8, 2016 at 13:24
2
Solved
I wanted to bring my question to the bigger audience as we already discussed for some time in our company and cannot find an answer.
Let us suppose we have Transaction object which is aggregate ro...
Geothermal asked 5/10, 2016 at 12:27
1
Solved
So for the login, since it doesn't really make anything new in the database but rather just returns if we've logged in, and possibly some user data, should it be a command or query?
And as for the ...
Tetchy asked 8/4, 2022 at 13:27
9
Solved
Why is it considered OK to have an Id field in the domain entities?
I have seen several solutions that provide base class with Id and Id-based GetHashCode/Equals.
My understanding of domain model ...
Ivon asked 13/5, 2009 at 20:19
5
I am learning about DDD so apologies if my question is naive. I think I need to use Local Data Transfer Object in order to display data to the users as a lot of properties are not part of any of En...
Maisonette asked 15/7, 2015 at 18:27
13
In Domain Driven Design, there seems to be lots of agreement that Entities should not access Repositories directly.
Did this come from Eric Evans Domain Driven Design book, or did it come from el...
Goree asked 17/4, 2011 at 15:2
15
Solved
One part of domain-driven design that there doesn't seem to be a lot of detail on, is how and why you should isolate your domain model from your interface. I'm trying to convince my colleagues that...
Sprint asked 4/5, 2009 at 18:19
1
I'm working on an application for managing bank credit cards.
CQRS and Event Sourcing architecture was chosen for the app.
The most important aggregate in the app is CreditCard which controls the c...
Recommendation asked 14/11, 2020 at 18:18
1
Recently I faced with the following invariants in my domain Model:
An Offer treated as Expired if ExpiryAt (DateTimeOffset) < DateTimeOffset.Now.
A Director of the Company cannot be younger th...
Donniedonnish asked 18/2, 2022 at 19:55
1
Solved
Currently I learn CQRS and DDD without Event Sourcing (not yet). I need to return from my repository to a query handler a model different from a domain model.
Should I create a read model in a doma...
Dahlgren asked 18/2, 2022 at 8:12
2
I am interested in how others have handled a Read Side DB update failure in CQRS/Event Sourcing eventually consistent systems.
I have such a system that could append an event to my event store, an...
Knuckleduster asked 12/7, 2018 at 15:44
2
I am just starting with the CQRS, Event Sourcing. While examining many frameworks, I have realized that one of the thing most of the frameworks assumed that our application is modelled based on the...
Riffraff asked 24/1, 2022 at 14:36
9
Solved
Can somebody please explain (in succinct terms) what exactly is domain driven design? I see the term quite a lot but really don't understand what it is or what it looks like. How does it differ fro...
Persis asked 16/3, 2011 at 13:15
2
Solved
I read about DDD and Access Control, and I found some contradiction between the following two opinions:
"security concerns should be handled outside the domain"
"access control requ...
Utricle asked 5/5, 2014 at 4:16
5
Solved
So here's the scenario:
DDD states that you use a repository to get the aggregate root, then use that to add/remove to any collections it has.
Adding is simple, you simple call .Add(Item item) on...
Preconcert asked 2/12, 2011 at 17:29
6
Solved
I'm just getting started with DDD. I'm putting domain events into a CQRS application and I'm stumbling on a fundamental task: How to use the MediatR.INotification marker interface within the domain...
Historiated asked 14/11, 2017 at 18:33
2
Solved
Can Domain Services access Repositories? Or they should work on Aggregates/Entities passed to them by Application Services?
Consider two code samples of the same business operation - money transf...
Hatteras asked 14/11, 2014 at 12:33
4
Solved
I have setup a domain project which is being populated with an ORM. The domain contains of different aggregates each with its own root object.
My question is how properties that cross the aggregate...
Bivins asked 12/9, 2013 at 9:52
2
Solved
I'm struggling with a basic issue. The project is in C#, but the issue is general.
I'm following the always valid object principle. As one example I have a product entity that has a mandatory prope...
Mitrewort asked 18/10, 2021 at 11:42
2
Solved
I am incredibly new to Domain Models and I am trying to build up my understanding. I have created this domain model around a scenario which I will provide. I feel this model is simple and as a resu...
Johppah asked 18/10, 2021 at 10:26
3
Solved
I'm struggling to understand why so many examples on the web are using MediatR when explaining CQRS patterns, when dealing with commands and queries.
Almost everywhere I see examples where Commands...
Innermost asked 11/3, 2021 at 21:50
7
How do I encapsulate the saving of more than one entity in a transactional manner using the repository pattern? For example, what if I wanted to add an order and update the customer status based on...
Inflated asked 22/2, 2009 at 16:10
3
On multiple sites (e.g. here or here Sagas are described as a mechanism that listens to domain events and reacts to them, executing new commands, and finally modifying the domain, etc.
Is there an...
Chopper asked 14/9, 2015 at 7:53
2
Solved
I'm working on my first "real" DDD application.
Currently my client does not have access to my domain layer and requests changes to the domain by issuing commands.
I then have a separate (flatten...
Cramped asked 11/10, 2011 at 21:40
© 2022 - 2024 — McMap. All rights reserved.