O
O
oldhowl2018-11-25 16:21:50
.NET
oldhowl, 2018-11-25 16:21:50

How to store a ValueObject in a repository according to DDD?

How to store ValueObject and map it to the database using DDD? I understand that ValueObject appears after the entity is loaded from the repository and is mapped into the entity already in the code? And in basis all is stored by one table? If this is the case, then I should have separate models for EF and for the control code, so that I can then connect them? Or do all ValueObjects need a separate table and key relationships with the parent model? If this is the case, then aren't we violating the principle of the relational base, because in the relational base entities should not be duplicated, because Money can be with the same amount and currency value.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question