Shuttle.Recall.SqlServer.Storage 21.0.1-beta

Prefix Reserved
This is a prerelease version of Shuttle.Recall.SqlServer.Storage.
dotnet add package Shuttle.Recall.SqlServer.Storage --version 21.0.1-beta
                    
NuGet\Install-Package Shuttle.Recall.SqlServer.Storage -Version 21.0.1-beta
                    
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="Shuttle.Recall.SqlServer.Storage" Version="21.0.1-beta" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Shuttle.Recall.SqlServer.Storage" Version="21.0.1-beta" />
                    
Directory.Packages.props
<PackageReference Include="Shuttle.Recall.SqlServer.Storage" />
                    
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 Shuttle.Recall.SqlServer.Storage --version 21.0.1-beta
                    
#r "nuget: Shuttle.Recall.SqlServer.Storage, 21.0.1-beta"
                    
#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 Shuttle.Recall.SqlServer.Storage@21.0.1-beta
                    
#: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=Shuttle.Recall.SqlServer.Storage&version=21.0.1-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Shuttle.Recall.SqlServer.Storage&version=21.0.1-beta&prerelease
                    
Install as a Cake Tool

Shuttle.Recall.SqlServer.Storage

Sql Server implementation of the Shuttle.Recall event sourcing IEventStore.

Installation

dotnet add package Shuttle.Recall.SqlServer.Storage

Configuration

In order to use Sql Server for event storage you should use the UseSqlServerEventStorage extension:

services.AddRecall(builder =>
{
    builder.UseSqlServerEventStorage(options =>
    {
        options.ConnectionString = "connection-string";
    });
});

The options can also be configured via appsettings.json:

{
  "Shuttle": {
    "Recall": {
      "SqlServer": {
        "Storage": {
          "ConnectionString": "connection-string",
          "Schema": "dbo"
        }
      }
    }
  }
}

Database

By default, the SqlServerStorageHostedService will automatically create the required database structures if ConfigureDatabase is set to true (which is the default). If you prefer to manage the database structure manually, you can use the provided Shuttle.Recall.SqlServer.Storage.Database console application.

IIdKeyRepository

You are bound to run into situations where you have a business or other key that is required to be unique. Given that the IEventStore makes use of only surrogate keys, the IIdKeyRepository is used to create a unique list of keys associated with a given aggregate identifier.

Since the keys used in the key store have to be unique, you should ensure that they contain enough information to be unique and have the intended meaning.

A key could be something such as [order-number]:ord-001/2016, [customer-onboarding]:id-number=0000005555089, or [system-name/profile]:672cda1c-c3ec-4f81-a577-e64f9f14e141.

ContainsAsync

ValueTask<bool> ContainsAsync(string key, CancellationToken cancellationToken = default);
ValueTask<bool> ContainsAsync(Guid id, CancellationToken cancellationToken = default);

Returns true if the given key or id is present in the key store.

FindAsync

ValueTask<Guid?> FindAsync(string key, CancellationToken cancellationToken = default);

Returns the Guid associated with the given key; else null.

RemoveAsync

Task RemoveAsync(string key, CancellationToken cancellationToken = default);
Task RemoveAsync(Guid id, CancellationToken cancellationToken = default);

When specifying the key, the association with the identifier will be removed. When specifying the id, all keys associated with the given id will be removed.

AddAsync

Task AddAsync(Guid id, string key, CancellationToken cancellationToken = default);

Creates an association between the id and the key.

RekeyAsync

Task RekeyAsync(string key, string rekey, CancellationToken cancellationToken = default);

Changes key to a new key specified by rekey.

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 (3)

Showing the top 3 NuGet packages that depend on Shuttle.Recall.SqlServer.Storage:

Package Downloads
Shuttle.Access.Application

Application concern implementations such as Shuttle.Core.Mediator participants.

Shuttle.Recall.SqlServer.EventProcessing

Sql Server event projection processing.

Shuttle.Access.SqlServer

Provides a Sql Server implementation of the data access components used by Shuttle.Access.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
21.0.1-beta 50 2/7/2026
21.0.0-alpha 46 1/18/2026