Service Layer on CQRS pattern
I'm trying to architect an application using CQRS pattern instead of Repositories and Onion architecture instead of n-layers using MVC5 stack. I have the following layers right now: Web.Data - Contains DbContext Web.Model - POCO classes Web.Service - Implementation of Commands and Queries using MediatR --Commands -----Request -----Handlers --Queries -----Request -----Handlers Web.UI I was thinking to put the Business Logic (e.g validations) on the Handler classes but I recon that those classes have direct access to EF. Is it still a good place to put those logic? How about if I have an Emailin
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.