assistant.net.storage.mongo 0.4.151

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

assistant.net.storage.mongo

MongoDB based storage provider implementation of Storage.

Usage

using var provider = new ServiceCollection()
    .AddStorage(b => b
        .UseMongo(o => o.Connection("mongodb://127.0.0.1:27017").Database("Storage"))
        .AddMongo<SomeModel>()
        .AddMongoAny()
        .AddMongoHistorical<SomeModel>()
        .AddMongoHistoricalAny()
        .AddMongoPartitioned<SomeModel>()
        .AddMongoPartitionedAny())
    .AddHealthChecks().AddMongo().Services
    .BuildStorageProvider();

var options = provider.GetRequiredService<INamedOptions<MongoOptions>>().Value;
var regularStorage = provider.GetRequiredService<IStorage<Key, SomeModel>>();
var partitionedStorage = provider.GetRequiredService<IHistoricalStorage<Key, SomeModel>>();
var partitionedStorage = provider.GetRequiredService<IPartitionedStorage<Key, SomeModel>>();
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
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 assistant.net.storage.mongo:

Package Downloads
assistant.net.messaging.mongo.client

MongoDB based remote message handling client.

assistant.net.messaging.mongo.server

MongoDB based server message handling.

assistant.net.mongo.healthcheck

A MongoDB health check.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.182 468 5/8/2023
0.4.151 483 3/28/2023
0.4.145 501 3/22/2023
0.4.144 1,008 9/4/2022
0.4.140 1,002 8/13/2022
0.3.139 1,030 8/9/2022
0.3.138 993 8/7/2022
0.3.137 990 8/6/2022
0.3.135 900 7/14/2022
0.3.133 911 7/4/2022
0.3.127 944 6/26/2022
0.3.125 958 6/25/2022
0.3.123 946 6/23/2022
0.3.121 931 6/22/2022
0.3.119 949 6/20/2022