Shuttle.Recall.Sql.Storage
                               
                            
                                20.0.0
                            
                        
                            
                                
                                
                                    Prefix Reserved
                                
                            
                    dotnet add package Shuttle.Recall.Sql.Storage --version 20.0.0
NuGet\Install-Package Shuttle.Recall.Sql.Storage -Version 20.0.0
<PackageReference Include="Shuttle.Recall.Sql.Storage" Version="20.0.0" />
<PackageVersion Include="Shuttle.Recall.Sql.Storage" Version="20.0.0" />
<PackageReference Include="Shuttle.Recall.Sql.Storage" />
paket add Shuttle.Recall.Sql.Storage --version 20.0.0
#r "nuget: Shuttle.Recall.Sql.Storage, 20.0.0"
#:package Shuttle.Recall.Sql.Storage@20.0.0
#addin nuget:?package=Shuttle.Recall.Sql.Storage&version=20.0.0
#tool nuget:?package=Shuttle.Recall.Sql.Storage&version=20.0.0
Sql Server
PM> Install-Package Shuttle.Recall.Sql.Storage
A Sql Server implementation of the Shuttle.Recall event sourcing EventStore.
Configuration
services.AddSqlEventStorage();
Database
Please reference the Shuttle.Recall.EntityFrameworkCore.SqlServer.Storage package and use the Entity Framework Core migration mechanism to create the event store database structures.
IKeyStore
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 IKeyStore 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.
Contains
bool Contains(string key);
Returns true if the given key has an associated aggregate identifier.
bool Contains(Guid id);
Returns true if the given id is present in the key store.
Get
Guid? Get(string key);
Returns the Guid associated with the given key; else null.
Remove
void Remove(string key);
void Remove(Guid id);
When specifying the key the assocation with the identifier will be removed.  When specifying the id all keys associated with the given id will be removed.
Add
void Add(Guid id, string key);
Creates an association between the id and the key.
Add
void Rekey(string key, string rekey);
Changes key to a new key specified by rekey.
| Product | Versions Compatible and additional computed target framework versions. | 
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. | 
- 
                                                - Shuttle.Core.Data (>= 20.0.0)
- Shuttle.Core.Data.ThreadDatabaseContextScope (>= 20.0.0)
- Shuttle.Recall (>= 20.0.0)
 
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Shuttle.Recall.Sql.Storage:
| Package | Downloads | 
|---|---|
| Shuttle.Recall.Sql.EventProcessing Sql-based implementation of the event store Shuttle.Recall projection interfaces. | |
| Shuttle.Access.Sql Provides Sql-based implementation of data access components for use with Shuttle.Access implementations. | |
| Shuttle.Access.Application Application concern implementations such as Shuttle.Core.Mediator participants. | 
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | 
|---|---|---|
| 20.0.0 | 1,462 | 2/2/2025 | 
| 18.0.0 | 233 | 8/5/2024 | 
| 17.0.1 | 259 | 5/3/2024 | 
| 17.0.0 | 296 | 4/30/2024 | 
| 16.1.1 | 1,207 | 12/1/2022 | 
| 16.0.1 | 1,264 | 9/18/2022 | 
| 16.0.0 | 1,222 | 9/4/2022 | 
| 14.0.0 | 2,154 | 5/29/2022 | 
| 13.1.1 | 1,023 | 5/6/2022 | 
| 13.1.0 | 1,247 | 5/6/2022 | 
| 13.0.2 | 1,070 | 4/9/2022 | 
| 13.0.1 | 1,523 | 4/9/2022 | 
| 13.0.0 | 1,349 | 3/21/2022 | 
| 12.0.2 | 3,003 | 2/4/2021 | 
| 12.0.1 | 1,357 | 11/8/2020 | 
| 11.0.1 | 1,432 | 9/1/2020 | 
| 11.0.0 | 1,499 | 8/21/2019 | 
| 10.2.0 | 1,463 | 5/27/2019 | 
| 10.1.4 | 1,539 | 9/22/2018 | 
| 10.1.3 | 1,907 | 9/16/2018 | 
| 10.0.3 | 1,585 | 8/7/2018 | 
| 10.0.2 | 2,353 | 7/8/2018 | 
| 10.0.0 | 3,249 | 2/13/2018 | 
| 8.0.11 | 1,884 | 10/14/2017 | 
| 8.0.10 | 1,713 | 8/6/2017 | 
| 8.0.9 | 2,401 | 7/2/2017 | 
| 8.0.8 | 1,889 | 7/1/2017 |