Drawbacks of CQRS
CQRS will bring extra code if you combine CQRS with the repository pattern. My suggestion is not to add another abstraction such as the repository pattern for the following reasons:
- Entity Framework already implements the repository pattern.
- There is a 99% chance that you will not change your Entity Framework implementation with NHibernate ORM or Dapper Micro ORM.
Okay, so we just finished exploring what CQRS, Mediator, and the MediatR package are. Let's summarize what you have learned here.