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

DDD thoughts - persistence models vs domain models vs application layer models? #43

Open
hansmbakker opened this issue Apr 7, 2021 · 0 comments

Comments

@hansmbakker
Copy link

hansmbakker commented Apr 7, 2021

I see Clean Architecture is an important part of this repository. I'm figuring out how to best approach that and what to put where.

I see an application layer? version of the TodoItem model in the Web API project.
Also I see you have your Core (domain model) project where you have your entities, and it seems that they are stored directly in CosmosDb. I understand it is possible to put a nested object in CosmosDb directly, but I was wondering whether could explain a bit about the thoughts (pro/con) of storing your domain model objects directly in the database?

Or more generally: when do you make the separation, and when not? (I personally would say "where you want to be independent from schema changes", but would like to discuss thoughts)

I found a relevant discussion on this topic on Reddit: https://www.reddit.com/r/csharp/comments/ewv7qf/ddd_converting_between_domain_and_storage_model/

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