Fluxera.StronglyTypedId 9.2.0

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

Build Status

Fluxera.StronglyTypedId

A library that provides strongly-typed Ids without code generation.

Usage

To implement a strongly-typed ID just inherit from the StronglyTypedId<,> base class. The base class implements all aspects of the ID, like quality and comparablility.

public sealed class PersonId : StronglyTypedId<PersonId, string>
{
	/// <inheritdoc />
	public PersonId(string value) : base(value)
	{
	}
}

Serializer Support

This library provides serializer support for the following libaries:

  • EF Core
  • JSON.NET
  • LiteDB
  • MongoDB
  • System.Text.Json

To use the serializer support just use the UseStronglyTypedId extension method to configure the corresponding serializer.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 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.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on Fluxera.StronglyTypedId:

Package Downloads
Fluxera.Repository

A generic repository implementation.

Fluxera.StronglyTypedId.SystemTextJson

A libary that provides serializer support for System.Text.Json for strongly-typed IDs.

Fluxera.Extensions.Hosting.Modules.Domain.Shared

A module that enables the domain.

Fluxera.StronglyTypedId.EntityFrameworkCore

A libary that provides serializer support for EF Core for strongly-typed IDs.

Fluxera.StronglyTypedId.LiteDB

A libary that provides serializer support for LiteDB for strongly-typed IDs.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
9.2.0 1,769 7/28/2025
9.0.2 6,021 2/5/2025
9.0.1 1,404 11/16/2024
9.0.0 398 11/14/2024
8.3.7 1,806 11/1/2024
8.3.6 1,554 7/9/2024
8.3.5 458 6/26/2024
8.3.4 3,942 6/15/2024
8.3.3 215 6/12/2024
8.3.2 342 6/12/2024
8.3.1 476 6/12/2024
8.2.1 345 6/12/2024
8.2.0 348 6/8/2024
8.1.1 1,514 6/2/2024
8.1.0 1,381 5/26/2024
8.0.9 479 5/24/2024
8.0.8 327 5/24/2024
8.0.7 13,294 4/18/2024
8.0.6 2,131 4/13/2024
8.0.5 628 4/13/2024
8.0.4 1,709 3/19/2024
8.0.3 4,593 2/22/2024
8.0.2 10,483 1/4/2024
8.0.1 2,105 11/23/2023
8.0.0 2,568 11/15/2023
7.1.7 5,395 7/23/2023
7.1.6 782 7/20/2023
7.1.5 1,866 6/21/2023
7.1.4 7,547 4/13/2023
7.1.3 2,604 3/16/2023
7.1.2 3,043 2/24/2023
7.1.1 3,010 1/22/2023
7.1.0 1,944 1/18/2023
7.0.6 5,152 12/22/2022
7.0.5 3,104 12/13/2022
7.0.4 1,775 12/13/2022
7.0.3 3,995 12/9/2022
7.0.2 1,750 11/15/2022
7.0.1 2,330 11/12/2022
7.0.0 1,606 11/9/2022
6.1.6 11,742 10/12/2022
6.1.5 27,367 9/15/2022
6.1.4 6,533 7/30/2022
6.1.3 6,553 6/30/2022
6.1.2 6,642 6/15/2022
6.1.1 7,758 6/7/2022
6.1.0 1,856 6/7/2022
6.0.5 3,312 6/3/2022
6.0.4 4,441 6/1/2022
6.0.3 4,351 5/31/2022
6.0.1 4,804 5/30/2022
6.0.0 5,932 5/29/2022