Should you use the Repository Pattern? With CQRS, Yes and No!

added by DotNetKicks
12/1/2021 11:09:19 PM

383 Views

The repository pattern is polarizing. Some developers swear you should always use it to abstract data access logic while others think it's unnecessary if you're using an ORM. So should you use it? My answer is Yes and No! If you're applying CQRS and Vertical Slice Architecture you'll likely want a repository to build up Aggregates.


0 comments