EventStoreCore.SqlServer 1.0.2-beta.1

This is a prerelease version of EventStoreCore.SqlServer.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package EventStoreCore.SqlServer --version 1.0.2-beta.1
                    
NuGet\Install-Package EventStoreCore.SqlServer -Version 1.0.2-beta.1
                    
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="EventStoreCore.SqlServer" Version="1.0.2-beta.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EventStoreCore.SqlServer" Version="1.0.2-beta.1" />
                    
Directory.Packages.props
<PackageReference Include="EventStoreCore.SqlServer" />
                    
Project file
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 EventStoreCore.SqlServer --version 1.0.2-beta.1
                    
#r "nuget: EventStoreCore.SqlServer, 1.0.2-beta.1"
                    
#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 EventStoreCore.SqlServer@1.0.2-beta.1
                    
#: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=EventStoreCore.SqlServer&version=1.0.2-beta.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=EventStoreCore.SqlServer&version=1.0.2-beta.1&prerelease
                    
Install as a Cake Tool

EventStoreCore.SqlServer

SQL Server persistence configuration for EventStoreCore using EF Core.

Setup

Register your application DbContext, configure the EventStore model in OnModelCreating, and tell EventStoreCore to reuse that context:

using EventStoreCore;
using EventStoreCore.SqlServer;
using Microsoft.EntityFrameworkCore;

public sealed class AppDbContext(DbContextOptions<AppDbContext> options)
    : DbContext(options)
{
    protected override void OnModelCreating(ModelBuilder modelBuilder)
    {
        base.OnModelCreating(modelBuilder);
        modelBuilder.UseEventStore();
    }
}

services.AddDbContext<AppDbContext>(
    options => options.UseSqlServer(connectionString));

services.AddEventStore(builder =>
{
    builder.ExistingDbContext<AppDbContext>();
});

ExistingDbContext<TDbContext>() does not create or migrate a separate database. EventStoreCore uses the application-owned context, connection, transaction, and migrations. Add migrations from the application project after calling UseEventStore().

Provider behavior

  • Event payloads and snapshots use SQL Server nvarchar(max) columns.
  • Stream identity is (Id, StreamType, TenantId).
  • Event ordering within a stream is protected by the (StreamId, StreamType, TenantId, Version) key.
  • EventId is a generated GUID with a global uniqueness constraint; consumers must not rely on GUID ordering.
  • Global event-log reads use the unique Events.Sequence index plus filtered sequence indexes for tenant, logical stream type, and logical event type.
  • Inline projections share the append transaction. Subscription and eventual projection delivery is at-least-once.
  • Daemons require an application-provided IDistributedLockProvider.

Provider-specific database migrations remain application owned. Review generated migrations when upgrading EventStoreCore, especially changes to keys, indexes, or required metadata columns. Existing databases adding global event-log reads need a migration for the new event sequence indexes.

Product 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.

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
1.0.2-beta.2 57 7/28/2026
1.0.2-beta.1 49 7/26/2026
1.0.1 119 5/25/2026
1.0.0-beta.13 69 4/8/2026
1.0.0-beta.12 63 2/15/2026
1.0.0-beta.11 64 2/13/2026
1.0.0-beta.10 70 2/13/2026
1.0.0-beta.9 69 2/5/2026
1.0.0-beta.8 70 2/3/2026
1.0.0-beta.7 71 2/3/2026
1.0.0-beta.6 65 2/2/2026
1.0.0-beta.5 72 1/17/2026
1.0.0-beta.4 74 1/16/2026
1.0.0-beta.3 76 1/15/2026
1.0.0-beta.2 67 1/14/2026
1.0.0-beta.1 76 1/13/2026