Data and Models in the Vertical Slices #70
Unanswered
ArvidNyden
asked this question in
Q&A
Replies: 1 comment
-
No, there's a single database for all features so it's a cross-cutting concern that does not belong to one single feature
No, there's a single "Domain" for the entire application, it's also a cross-cutting concern that does not belong to one single feature. You might be able to swing something that has individual aggregate methods as partial classes living inside a feature, but to me that's abusing the partial class feature. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! In the documentation of Vertical Sliced Architecture, it looks very much as the data layer also should be a part of the "Feature - Slices".
How come that you have separated the data layer : https://github.com/jbogard/ContosoUniversityDotNetCore-Pages/blob/master/ContosoUniversity/Data/SchoolContext.cs.
I've used the "Clean Architecture, CQRS" approach before with Web API and the real only different is that you have moved the Controllers together with the Handler / Command / Queries / Validators, would be nice to see you move the data and domain layer as well.
Beta Was this translation helpful? Give feedback.
All reactions