StrongTypedId.LiteDB
2.5.1
dotnet add package StrongTypedId.LiteDB --version 2.5.1
NuGet\Install-Package StrongTypedId.LiteDB -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.LiteDB" Version="2.5.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="StrongTypedId.LiteDB" Version="2.5.1" />
<PackageReference Include="StrongTypedId.LiteDB" />
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.LiteDB --version 2.5.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: StrongTypedId.LiteDB, 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.LiteDB@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.LiteDB&version=2.5.1
#tool nuget:?package=StrongTypedId.LiteDB&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.LiteDB
This package provides support for using StrongTypedId with LiteDB by adding LiteDB serializers.
Usage
Simply reference the project and create a custom BsonMapper using the StrongTypedLiteDB.CreateBsonMapper method.
Feed this BsonMapper to your LiteDatabase constructor and you're set.
// There are multiple ways to get all relevant assemblies, the method takes a params IEnumerable<Assembly>, so feel free to do this however you want
var mapper = StrongTypedLiteDB.CreateBsonMapper(typeof(SomeId).Assembly);
var liteDb = new LiteDatabase("my-db.db", mapper); // this liteDb instance is now compatible with all StrongTyped types in the assemblies above.
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)
- LiteDB (>= 5.0.21)
- 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 | 234 | 10/15/2025 |