Simple .NET MediatR base EF Transactional Behavior, Paginated Queries, Paginated Models.
Written on C#.
Main Features:
-
TransactionalBehavior and ExplicitTransaction.
When added wrap every CommandHandler into EF Transaction, so only whole CommandHandler instructions will be commited or rejected. To switch off this wrapper on specific CommandHandler have to use ExplicitTransaction attribute on the command handler.
-
PaginatedQueries and PaginatedModels.
These classes represent basic requirements to Paginated queries, models and so on.
-
.NET 6, .NET 7, .NET 8 and Source Linking.
From version 8.0 repository contains additional .NET 8 projects. From version 7.0 repository contains .NET 6 and .NET 7 projects. Source linking enabled and symbol package is published to nuget symbols server, making debugging easier.
https://www.nuget.org/packages/Cross.CQRS.EF
Clone repository or Install Nuget Package
Install-Package Cross.CQRS.EF
Contribution is welcomed. If you would like to provide a PR please add some testing.
Please use Wiki for documentation and usage examples.
Note - test project is not a part of nuget package. You have to clone repository.
- Refactor the Paginated Queries and Paginated Models.