Datapoint.Mediator.EntityFrameworkCore
4.0.0-beta.2
See the version list below for details.
dotnet add package Datapoint.Mediator.EntityFrameworkCore --version 4.0.0-beta.2
NuGet\Install-Package Datapoint.Mediator.EntityFrameworkCore -Version 4.0.0-beta.2
<PackageReference Include="Datapoint.Mediator.EntityFrameworkCore" Version="4.0.0-beta.2" />
<PackageVersion Include="Datapoint.Mediator.EntityFrameworkCore" Version="4.0.0-beta.2" />
<PackageReference Include="Datapoint.Mediator.EntityFrameworkCore" />
paket add Datapoint.Mediator.EntityFrameworkCore --version 4.0.0-beta.2
#r "nuget: Datapoint.Mediator.EntityFrameworkCore, 4.0.0-beta.2"
#:package Datapoint.Mediator.EntityFrameworkCore@4.0.0-beta.2
#addin nuget:?package=Datapoint.Mediator.EntityFrameworkCore&version=4.0.0-beta.2&prerelease
#tool nuget:?package=Datapoint.Mediator.EntityFrameworkCore&version=4.0.0-beta.2&prerelease
Datapoint.Mediator.EntityFrameworkCore
A Datapoint.Mediator behaviour that runs each command in an Entity Framework Core transaction, and saves its changes once, after the handler succeeds. Handlers don't call SaveChangesAsync. Register it with Datapoint.Mediator.EntityFrameworkCore.DependencyInjection.
[NonTransactional] // calls an external system: no transaction, and the handler saves itself
public sealed record SendInvoiceEmail(Guid InvoiceId) : ICommand;
Retries: with a retrying execution strategy, such as
EnableRetryOnFailure, a transient failure runs the whole command again, handler and message handlers included. Database changes are rolled back first, but external calls, such as HTTP requests or emails, happen again. Make them idempotent, or move them to a[NonTransactional]command.
Optionally, set isolation levels, run queries in read-only transactions, and prepare each transaction with an ITransactionInitializer<TDbContext>, for example for PostgreSQL row-level security.
Documentation: Transactions
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Datapoint.Mediator.Abstractions (>= 4.0.0-beta.2)
- Microsoft.EntityFrameworkCore (>= 10.0.14)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.14)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Datapoint.Mediator.EntityFrameworkCore:
| Package | Downloads |
|---|---|
|
Datapoint.Mediator.EntityFrameworkCore.DependencyInjection
Registers the Datapoint.Mediator Entity Framework Core transaction behaviour with AddTransactionBehavior<TDbContext>(). |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.0-beta.3 | 0 | 11/2/2026 |
| 4.0.0-beta.2 | 31 | 11/1/2026 |
| 4.0.0-beta.1 | 39 | 11/1/2026 |