StrongTypedId.MongoDB
2.5.1
dotnet add package StrongTypedId.MongoDB --version 2.5.1
NuGet\Install-Package StrongTypedId.MongoDB -Version 2.5.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="StrongTypedId.MongoDB" Version="2.5.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="StrongTypedId.MongoDB" Version="2.5.1" />
<PackageReference Include="StrongTypedId.MongoDB" />
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 StrongTypedId.MongoDB --version 2.5.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: StrongTypedId.MongoDB, 2.5.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 StrongTypedId.MongoDB@2.5.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=StrongTypedId.MongoDB&version=2.5.1
#tool nuget:?package=StrongTypedId.MongoDB&version=2.5.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Want to see what's changed?
StrongTypedId.MongoDB
This package provides support for using StrongTypedId with MongoDB by adding a MongoDB serializer.
Usage
Simply reference the project and execute StrongTypedMongo.AddStrongTypedMongoSerializers
with your assemblies
containing StrongTyped types.
StrongTypedMongo.AddStrongTypedMongoSerializers(typeof(MyId).Assembly);
// or
StrongTypedMongo.AddStrongTypedMongoSerializers(typeof(MyId).Assembly, typeof(IdInOtherAssembly).Assembly);
You can wire up as many assemblies as you want in a single call.
Documentation
Auto generated documentation via DocFx is available here: https://steffenskov.github.io/StrongTypedId/
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. 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.
-
net9.0
- Ckode.ServiceLocator (>= 2.3.0)
- MongoDB.Driver (>= 3.5.0)
- StrongTypedId (>= 2.5.1)
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 |
---|---|---|
2.5.1 | 146 | 10/15/2025 |
2.5.0 | 148 | 10/15/2025 |
2.4.0 | 1,179 | 8/17/2025 |
2.3.3 | 2,209 | 7/23/2025 |
2.3.2 | 425 | 7/21/2025 |
2.3.1 | 150 | 7/11/2025 |
2.3.0 | 144 | 7/6/2025 |
2.2.1 | 92 | 7/5/2025 |
2.2.0 | 971 | 3/12/2025 |
2.1.0 | 182 | 3/12/2025 |
2.0.0 | 8,076 | 12/30/2024 |
1.9.2 | 9,545 | 11/15/2024 |
1.9.1 | 142 | 11/13/2024 |
1.9.0 | 156 | 11/11/2024 |