NStore.Persistence.Mongo 0.20.1

dotnet add package NStore.Persistence.Mongo --version 0.20.1
                    
NuGet\Install-Package NStore.Persistence.Mongo -Version 0.20.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="NStore.Persistence.Mongo" Version="0.20.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NStore.Persistence.Mongo" Version="0.20.1" />
                    
Directory.Packages.props
<PackageReference Include="NStore.Persistence.Mongo" />
                    
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 NStore.Persistence.Mongo --version 0.20.1
                    
#r "nuget: NStore.Persistence.Mongo, 0.20.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 NStore.Persistence.Mongo@0.20.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=NStore.Persistence.Mongo&version=0.20.1
                    
Install as a Cake Addin
#tool nuget:?package=NStore.Persistence.Mongo&version=0.20.1
                    
Install as a Cake Tool

<img src="logo/logo.png" alt="logo" height="120" align="right" />

NStore

(Yet Another) Opinionated Event Sourcing Library

NStore started as a playground for experimenting with .net Standard, async and a simple API for a Sql/NoSql backed EventStore.

After years of experience running NEventStore in production we wrote NStore from scratch with a simpler and extensible API.

CI Status

Build server Platform Build Status
AppVeyor Windows <img src="https://ci.appveyor.com/api/projects/status/github/proximosrl/nstore?svg=true" alt="Build status" >
GH Actions Linux <img src="https://github.com/ProximoSrl/NStore/workflows/NStore%20CI/badge.svg" alt="Build status" >
Azdo Windows <img src="https://dev.azure.com/gianmariaricci/Public/_apis/build/status/130" alt="Build status" >

Quickstart

Setup the streams factory

var streams = new StreamsFactory(new InMemoryPersistence());

open the stream

var post = streams.Open("post/123");

append new data

await post.AppendAsync(new Favorited("users/200", DateTime.UtcNow));

read the stream

await post.ReadAsync(chunk =>
{
    Console.WriteLine($"{chunk.PartitionId} #{chunk.Index} => {chunk.Payload}");
    return Subscription.Continue;
});

Process the stream

var favs = await post.AggregateAsync<UniqueFavs>();

Console.WriteLine($"{favs.Count} users added '{post.Id}' as favorite");

Full source at src/NStore.Quickstart/Program.cs


Learn

The source comes with a Sample App to illustrate some basic stuff you can do.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
0.20.1 175 7/29/2025
0.20.0 447 12/17/2024
0.20.0-mongo-driver-3-0011 114 12/9/2024
0.20.0-alpha0011 110 12/17/2024
0.20.0-alpha0010 107 10/28/2024
0.19.0 182 10/28/2024
0.19.0-alpha0028 97 10/28/2024
0.19.0-alpha0027 122 9/16/2024
0.19.0-alpha0019 124 7/15/2024
0.19.0-alpha0016 107 7/4/2024
0.19.0-alpha0015 108 7/3/2024
0.19.0-alkampfergit-add0024 113 8/28/2024
0.19.0-alkampfergit-add0020 129 8/28/2024
0.18.3 360 9/16/2024
0.18.3-beta0001 122 9/16/2024
0.18.1 233 7/4/2024
0.18.1-beta0015 120 7/4/2024
0.18.0 259 7/3/2024
0.18.0-alpha0018 130 7/3/2024
0.18.0-alpha0016 99 6/12/2024
0.18.0-alpha0015 105 6/12/2024
0.18.0-alpha0013 105 6/12/2024
0.18.0-alpha0010 122 6/11/2024
0.18.0-alpha0009 110 6/11/2024
0.18.0-alpha0008 122 6/11/2024
0.18.0-alpha0007 148 1/4/2024
0.18.0-alkampfergit-rem0015 117 6/12/2024
0.18.0-alkampfergit-rem0014 119 6/12/2024
0.18.0-alkampfergit-cen0017 118 7/3/2024
0.18.0-alkampfergit-cen0016 117 6/12/2024
0.18.0-alkampfergit-add0021 122 6/12/2024
0.18.0-alkampfergit-add0020 116 6/12/2024
0.18.0-alkampfergit-add0019 121 6/12/2024
0.18.0-alkampfergit-add0018 123 6/12/2024
0.18.0-alkampfergit-add0017 123 6/12/2024
0.18.0-alkampfergit-add0013 116 6/12/2024
0.17.1-beta0001 143 1/4/2024
0.17.0 453 1/4/2024
0.17.0-beta0001 125 1/4/2024
0.17.0-alpha0009 176 8/16/2023
0.17.0-alpha0006 180 8/16/2023
0.17.0-alpha0002 208 7/26/2023
0.16.2-beta0001 141 11/25/2023
0.16.1 303 8/16/2023
0.16.0 275 7/26/2023
0.16.0-beta0000 195 7/26/2023
0.16.0-alpha0008 189 7/11/2023
0.15.1 286 7/11/2023
0.15.1-beta0002 212 7/11/2023
0.15.0-beta0000 188 5/4/2023
0.15.0-alpha0006 217 2/13/2023
0.15.0-alpha0002 207 5/4/2023
0.14.0 525 2/13/2023
0.14.0-tags-0-13-0-0001 231 12/19/2022
0.14.0-multi-partition-0010 237 2/7/2023
0.14.0-beta0000 231 2/10/2023
0.14.0-alpha0010 233 2/8/2023
0.13.1 476 12/19/2022
0.13.0-alpha0017 239 11/4/2022
0.13.0-alpha0016 245 11/4/2022
0.13.0-alpha0013 236 8/30/2022
0.13.0-alpha0000 236 8/30/2022
0.12.1 478 11/4/2022
0.12.1-beta0013 261 11/4/2022
0.12.0 587 8/30/2022
0.12.0-alpha0069 266 5/31/2022
0.12.0-alpha0058 3,571 11/25/2021
0.12.0-alpha0055 320 11/5/2021
0.12.0-alpha0052 357 11/4/2021
0.12.0-alpha0049 337 9/23/2021
0.11.5 624 5/27/2022
0.11.5-beta0001 268 5/27/2022
0.11.3 3,832 11/25/2021
0.11.2 613 11/5/2021
0.11.1 499 11/4/2021
0.11.0 499 9/23/2021
0.11.0-libupgrade0033 397 4/8/2021
0.11.0-libupgrade0032 408 4/8/2021
0.11.0-libupgrade0031 408 4/8/2021
0.11.0-libupgrade0030 414 4/8/2021
0.11.0-fixbuild0030 403 4/7/2021
0.11.0-alpha0074 360 9/22/2021
0.11.0-alpha0066 340 5/10/2021
0.11.0-alpha0055 323 5/10/2021
0.11.0-alpha0047 410 5/6/2021
0.11.0-alpha0034 368 4/15/2021
0.11.0-alpha0029 396 4/7/2021
0.10.7 530 6/11/2021
0.10.7-ci0002 353 6/11/2021
0.10.7-beta0003 347 6/11/2021
0.10.7-beta0001 358 6/11/2021
0.10.6 557 5/10/2021
0.10.6-beta0006 395 5/7/2021
0.10.6-beta0005 371 5/7/2021
0.10.6-beta0004 406 5/7/2021
0.10.6-beta0002 419 5/7/2021
0.10.4 648 1/7/2021
0.10.0 641 1/7/2021
0.9.0 830 5/24/2020
0.9.0-pre0035 526 2/13/2020
0.9.0-pre0034 564 2/12/2020
0.8.0 873 4/4/2019
0.6.0 883 3/14/2019
0.4.0 1,507 3/20/2018
0.3.0 2,001 1/11/2018
0.2.1-beta0002 1,181 12/23/2017
0.2.0-sqlitebinary0111 1,008 11/21/2017
0.2.0-pre0091 1,062 11/1/2017
0.2.0-pre0064 1,050 9/6/2017
0.2.0-pre0045 1,092 8/30/2017
0.2.0-pre0021 1,044 8/25/2017
0.2.0-pre0013 1,126 8/24/2017
0.2.0-pre0004 1,044 8/23/2017
0.2.0-pre0002 1,042 8/23/2017