Papst.EventStore.EntityFrameworkCore
6.3.3
See the version list below for details.
dotnet add package Papst.EventStore.EntityFrameworkCore --version 6.3.3
NuGet\Install-Package Papst.EventStore.EntityFrameworkCore -Version 6.3.3
<PackageReference Include="Papst.EventStore.EntityFrameworkCore" Version="6.3.3" />
<PackageVersion Include="Papst.EventStore.EntityFrameworkCore" Version="6.3.3" />
<PackageReference Include="Papst.EventStore.EntityFrameworkCore" />
paket add Papst.EventStore.EntityFrameworkCore --version 6.3.3
#r "nuget: Papst.EventStore.EntityFrameworkCore, 6.3.3"
#:package Papst.EventStore.EntityFrameworkCore@6.3.3
#addin nuget:?package=Papst.EventStore.EntityFrameworkCore&version=6.3.3
#tool nuget:?package=Papst.EventStore.EntityFrameworkCore&version=6.3.3
Entity Framework Core Implementation of Event Stream
The Entity Framework Implementation needs to be added to the dependency injection container.
To achieve this, there is an extension method to the IServiceCollection available, that takes a Configuration action for the DbContextOptionsBuilder:
IServiceCollection services;
services.AddEntityFrameworkCoreEventStore(options => options.AddSqlServer("..."));
Usage
High-Level Event Store (IEventStore)
var eventStore = serviceProvider.GetRequiredService<IEventStore>();
var streamId = Guid.NewGuid();
var stream = await eventStore.CreateAsync(streamId, "MyAggregate");
Low-Level Event Store (ILowLevelEventStore)
For handling events as raw JSON objects without type information:
var lowLevelEventStore = serviceProvider.GetRequiredService<ILowLevelEventStore>();
var streamId = Guid.NewGuid();
var stream = await lowLevelEventStore.CreateAsync(streamId, "MyAggregate");
// Append a low-level event (as JObject)
var evt = JObject.Parse(@"{ ""productId"": ""ABC123"", ""quantity"": 5 }");
await stream.AppendAsync(Guid.NewGuid(), "ItemAdded", evt);
Deleting an Event Stream
DeleteAsync removes the stream index row from the Streams table and every related document row from the Documents table within a single SaveChangesAsync call:
await eventStore.DeleteAsync(streamId);
If the stream does not exist, an EventStreamNotFoundException is thrown. The action is logged at Information level.
Configuration
No further configuration is necessary beyond the event store registration.
Migrations / Table creation
Tables are created using Entity Framework Core Migrations.
These Migrations are not applied automatically. This needs to be done by additional code or by applying the .sql files in the Migrations directory of the Source Code Repository.
| 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
- Azure.Core (>= 1.53.0)
- Azure.Identity (>= 1.15.0 && <= 2.0.0)
- Microsoft.CodeAnalysis.Analyzers (>= 3.11.0)
- Microsoft.CodeAnalysis.CSharp (>= 5.0.0)
- Microsoft.EntityFrameworkCore (>= 10.0.5)
- Microsoft.EntityFrameworkCore.Design (>= 10.0.5)
- Microsoft.EntityFrameworkCore.SqlServer (>= 10.0.5)
- Microsoft.Extensions.Caching.Memory (>= 10.0.5)
- Microsoft.Extensions.Configuration (>= 10.0.5)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.5)
- Microsoft.Extensions.DependencyInjection (>= 10.0.5)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Options (>= 10.0.5)
- Nerdbank.GitVersioning (>= 3.9.50)
- Newtonsoft.Json (>= 13.0.4)
- Papst.EventStore (>= 6.3.0 && < 7.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 6.4.5 | 78 | 8/10/2026 |
| 6.3.3 | 99 | 8/2/2026 |
| 6.2.2 | 96 | 7/19/2026 |
| 6.1.2 | 108 | 5/16/2026 |
| 6.0.14 | 109 | 5/6/2026 |
| 6.0.11 | 105 | 5/2/2026 |
| 6.0.9 | 116 | 4/12/2026 |
| 6.0.4 | 111 | 4/11/2026 |
| 6.0.3 | 111 | 4/11/2026 |
| 5.4.9 | 132 | 2/13/2026 |
| 5.4.3 | 135 | 1/7/2026 |
| 5.3.6 | 139 | 1/2/2026 |
| 5.2.36 | 235 | 9/22/2025 |
| 5.2.32 | 208 | 6/3/2025 |
| 5.2.30 | 185 | 2/12/2025 |
| 5.2.28 | 186 | 2/9/2025 |
| 5.2.25 | 172 | 2/9/2025 |
| 5.2.23 | 180 | 2/9/2025 |
| 5.2.21 | 170 | 12/7/2024 |
| 5.2.18 | 183 | 11/12/2024 |