value-objects Questions
7
I don't get why value objects in DDD should be immutable, nor do I see how this is easily done. (I'm focusing on C# and Entity Framework, if that matters.)
For example, let's consider the classic ...
Parasang asked 3/1, 2011 at 1:55
2
I'm struggling creating a non-nullable/required Owned Type with Entity Framework Core.
I'm using EF Core 3.0 against PostgreSQL database.
My value object:
public class PersonName
{
public Pers...
Nikaniki asked 10/12, 2019 at 21:38
3
When you receive arguments in string format from the UI inside you controller, do you pass strings to application service (or to command) directly ?
Or, do you create value objects from the strin...
Belinda asked 16/3, 2015 at 14:28
7
Solved
Is a Data Transfer Object the same as a Value Object or are they different? If they are different then where should we use a DTO and where should we use a VO?
The programming language we are talkin...
Swec asked 12/1, 2012 at 6:21
2
Solved
I have an entity with an ExternalSystemName value object and a Deployment parent type which is another entity. The important part of the model looks like this :
public sealed class ExternalSystem :...
Bulley asked 28/10, 2022 at 20:34
2
I am working on an application which requires some double entry bookkeeping. Currently there are two endpoints
/account
/transaction
While /account handles general data of the accounts, /transac...
Karen asked 30/10, 2015 at 15:17
9
I have just started reading DDD. I am unable to completely grasp the concept of Entity vs Value objects.. Can someone please explain the problems (maintainability, performance.. etc) a system could...
Modigliani asked 16/9, 2008 at 18:27
1
Solved
I've been studying domain-driven design lately and must say this type of architectural design triggers something in me. When I try to apply its concepts to my Go project I've encountered some obsta...
Dardanelles asked 25/2, 2019 at 20:7
6
Solved
Value objects do not have identity. ORM needs identity to update the database.
How to trick ORM?
(Marking Id for value object as internal won't work because ORM lives in a different assembly an...
Kalle asked 4/6, 2009 at 8:45
3
I'm trying to get my head around combining some techniques.
It seems good practice to never make it possible to create a ValueObject that is not valid. The ValueObject constructor therefor should ...
Recover asked 21/1, 2014 at 20:58
2
Solved
I have an entity that has a value object and this value object has another value object. My issue is that when updating the entity along with the value objects, the entity with the parent value obj...
Mccormac asked 23/5, 2018 at 10:58
5
Solved
Let's say we have CQRS-inspired architecture, with components such as Commands, Domain Model, Domain Events, Read Model DTOs.
Of course, we can use Value Objects in our Domain Model. My question is...
Esquire asked 2/2, 2011 at 0:14
1
Solved
Consider these simple classes. They belong to a simple application with Domain Driven Design (DDD) principles, and as such every Entity and ValueObject receives its property values through the cons...
Frigidarium asked 12/8, 2019 at 19:19
8
In which scenario can I use those design patterns in n-tier architecture?
Gastrocnemius asked 8/8, 2011 at 17:26
1
Solved
I'm learning DDD and the tutorial I'm currently following is implemented using NHibernate, but since my lack of experience with it I've decided to go through the course using EF Core 2.1.
However...
Brunk asked 6/12, 2018 at 13:5
2
Solved
Let's say I've got two Doctrine entities, Person and Company. Both have an address field which accepts an Address value object. As per business rules, Company::Address is required while Person::Add...
Shultz asked 19/6, 2017 at 11:46
2
Solved
When modeling a domain with entities and value objects, would it make any sense to also make "basic" value types as well defined value objects?
For instance, I can have a value object EmailAddress...
Farly asked 27/3, 2018 at 10:6
1
Solved
In Domain Driven Design, we're introduced to the concept of a ValueObject, where objects don't carry an identity.
Microsoft have provided an implementation of their ValueObject in their Microservi...
Ormuz asked 9/3, 2018 at 14:19
2
Is it possible to use inheritance on value objects embedded in doctrine entities?
The situation I'm thinking about is:
I have an entity that has and embedded value object. That value object has ...
Mender asked 15/6, 2015 at 13:14
3
Solved
I'd like to model an Address as a value object. As it is a good practice to make it immutable, I chose not to provide any setter, that might allow to modify it later.
A common approach is to pass ...
Alevin asked 13/9, 2011 at 16:30
3
Solved
When creating aggregates, should we create value objects inside aggregates, or we should pass already created value objects to ctor or factory.
public Booking(DateTime arrivalDate, DateTime depar...
Nietzsche asked 6/9, 2016 at 13:7
1
Solved
#1. Validate EmailAddress on the Form
I have a backend form class with an emailAddress property that has validation logic so that I can return an error message back to the user. I validate all for...
Touzle asked 19/10, 2015 at 17:25
3
Solved
This is a long question so i am gonna go straight to the point. This is pseudo code for better illustration of the problem
DB Structure
User (UserID, Name, LastName)
Address(AddressID, UserID, S...
Sisson asked 9/12, 2012 at 1:3
1
Solved
I have a Value Objects - Money and ExchangeRatio. I want to convert one Money to another using ExchangeRatio. So is it good to build a convert behavior on Value Object ExchangeRatio like so:
Excha...
Yenta asked 26/2, 2015 at 20:36
2
Solved
In my domain each Domain Entity may have many Value Objects. I have created value objects to represent money, weight, count, length, volume, percentage, etc.
Each of these value objects contains b...
Integrator asked 22/2, 2015 at 0:9
1 Next >
© 2022 - 2024 — McMap. All rights reserved.