StrongTypedId.MongoDB
2.5.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package StrongTypedId.MongoDB --version 2.5.0
NuGet\Install-Package StrongTypedId.MongoDB -Version 2.5.0
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.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="StrongTypedId.MongoDB" Version="2.5.0" />
<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.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: StrongTypedId.MongoDB, 2.5.0"
#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.0
#: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.0
#tool nuget:?package=StrongTypedId.MongoDB&version=2.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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.0)
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 | 162 | 10/15/2025 |
| 2.5.0 | 160 | 10/15/2025 |
| 2.4.0 | 1,563 | 8/17/2025 |
| 2.3.3 | 2,215 | 7/23/2025 |
| 2.3.2 | 430 | 7/21/2025 |
| 2.3.1 | 153 | 7/11/2025 |
| 2.3.0 | 147 | 7/6/2025 |
| 2.2.1 | 95 | 7/5/2025 |
| 2.2.0 | 974 | 3/12/2025 |
| 2.1.0 | 186 | 3/12/2025 |
| 2.0.0 | 8,079 | 12/30/2024 |
| 1.9.2 | 9,549 | 11/15/2024 |
| 1.9.1 | 143 | 11/13/2024 |
| 1.9.0 | 161 | 11/11/2024 |