Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

I am leaving GitHub. Follow me on Codeberg! -- A library that provides strongly-typed Ids without code generation.

License

Notifications You must be signed in to change notification settings

mgernand/Fluxera.StronglyTypedId

Repository files navigation

I am leaving GitHub

Please follow me on Codeberg!
You can also find the sources of this repository there!

Onwards! ✊

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.

About

I am leaving GitHub. Follow me on Codeberg! -- A library that provides strongly-typed Ids without code generation.

Topics

Resources

License

Stars

Watchers

Forks

Languages