Sparkdo.MassHub.EntityFrameworkCore
1.0.3
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Sparkdo.MassHub.EntityFrameworkCore --version 1.0.3
NuGet\Install-Package Sparkdo.MassHub.EntityFrameworkCore -Version 1.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Sparkdo.MassHub.EntityFrameworkCore" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sparkdo.MassHub.EntityFrameworkCore" Version="1.0.3" />
<PackageReference Include="Sparkdo.MassHub.EntityFrameworkCore" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Sparkdo.MassHub.EntityFrameworkCore --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sparkdo.MassHub.EntityFrameworkCore, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Sparkdo.MassHub.EntityFrameworkCore@1.0.3
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Sparkdo.MassHub.EntityFrameworkCore&version=1.0.3
#tool nuget:?package=Sparkdo.MassHub.EntityFrameworkCore&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Sparkdo.MassHub.EntityFrameworkCore
Sparkdo 消息总线的 Entity Framework Core 持久化抽象层,提供发件箱、Saga 和调度的拦截器基础设施。
功能特性
- IEntityFrameworkCoreBuilder:为特定 DbContext 配置消息持久化功能的构建器接口
- 发件箱拦截器:通过
SaveChangesInterceptor在事务提交时触发发件箱信号 - Saga 状态持久化:
SagaState实体模型 +DbContextSagaStore存储 Saga 实例状态 - 弹性重试:
UseResilience()利用 EF Core 执行策略自动重试瞬时数据库故障 - 事务中间件:
UseTransaction()将消费者调用包装在数据库事务中
安装
dotnet add package Sparkdo.MassHub.EntityFrameworkCore
使用示例
services.AddMessageBusHostedService(builder =>
{
builder.AddEntityFramework<AppDbContext>(ef =>
{
ef.UseResilience()
.UseTransaction();
ef.AddOutbox();
ef.AddSagas();
});
});
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.EntityFrameworkCore (>= 10.0.8)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.8)
- Microsoft.Extensions.Caching.Memory (>= 10.0.8)
- Microsoft.Extensions.Configuration (>= 10.0.8)
- Microsoft.Extensions.DependencyInjection (>= 10.0.8)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Logging (>= 10.0.8)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.8)
- Microsoft.Extensions.ObjectPool (>= 10.0.8)
- Microsoft.Extensions.Options (>= 10.0.8)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.8)
- Microsoft.Extensions.Primitives (>= 10.0.8)
- Npgsql (>= 10.0.0)
- OpenTelemetry (>= 1.15.3)
- Polly (>= 8.6.6)
- Sparkdo.MassHub (>= 1.0.3)
- Sparkdo.MassHub.Abstractions (>= 1.0.3)
- Sparkdo.MassHub.Outbox (>= 1.0.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Sparkdo.MassHub.EntityFrameworkCore:
| Package | Downloads |
|---|---|
|
Sparkdo.MassHub.EntityFrameworkCore.Postgres
Sparkdo 消息总线 PostgreSQL EF Core 实现(Inbox/Outbox/Saga/Scheduling) |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.4-preview.3 | 47 | 6/8/2026 |
| 1.0.4-preview.2 | 45 | 6/7/2026 |
| 1.0.4-preview.1 | 49 | 6/7/2026 |
| 1.0.3 | 103 | 6/6/2026 |