Caution
Due to the commercialization of MediatR and AutoMapper, this project has been restructured and is now maintained under the Arbiter repository with those dependencies removed.
This repository is now archived and will no longer receive updates. Please migrate to the Arbiter project for continued support and improvements. You can find the migration guide here.
CQRS framework using MediatR, AutoMapper and FluentValidation
Package | Version | Description |
---|---|---|
MediatR.CommandQuery | Base package for Commands, Queries and Behaviours | |
MediatR.CommandQuery.EntityFrameworkCore | Entity Framework Core handlers for the base Commands and Queries | |
MediatR.CommandQuery.MongoDB | Mongo DB handlers for the base Commands and Queries | |
MediatR.CommandQuery.Endpoints | Minimal API endpoints for base Commands and Queries | |
MediatR.CommandQuery.Mvc | MVC Controller endpoints base Commands and Queries |
- Base commands and queries for common CRUD operations
- Generics base handlers for implementing common CRUD operations
- Common behaviors for audit, caching, soft delete, multi-tenant and validation
- View modal to data modal mapping via AutoMapper
- Model validation via FluentValidation
- Entity Framework Core handlers for common CRUD operations
- MongoDB handlers for common CRUD operations
The MediatR.CommandQuery.EntityFrameworkCore library is available on nuget.org via package name MediatR.CommandQuery.EntityFrameworkCore
.
To install MediatR.CommandQuery.EntityFrameworkCore, run the following command in the Package Manager Console
Install-Package MediatR.CommandQuery.EntityFrameworkCore
OR
dotnet add package MediatR.CommandQuery.EntityFrameworkCore