Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which is the ubiquitous language that determinates the need of a version property in the order entity? #1

Open
ComptonAlvaro opened this issue Oct 17, 2022 · 0 comments

Comments

@ComptonAlvaro
Copy link

I have seen in the optimistic concurrency example, that in the entities there is a property for the version. But I have the following doubt.

Which is the ubuquitous language that determinates the need of this property? It is hard to imagine how the domain experts talk about version of entity. I can imagine they talk about conditions like an order can have only 5 lines, or the total amount has to be less than X total, or the customer has to be accepted to can create orders... but I don't see how that experts will tell, we have to take care about concurrency, we need a version for entities. For me, it seems that it is more suitable for the repository, for example, that is who can check in the SaveChanges() if is the same version and if not, throw and exception that will be handle by the consumer (in the application layer).

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant