Skip to content

Strongly Typed Ids (ULID) for C# which supports JSON and MongoDB.Bson serialization using roslyn incremental source generators

Notifications You must be signed in to change notification settings

AhmedKabbary/StronglyTypedId.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StronglyTypedId

Strongly Typed Ids (ULID) for C#.

This project uses Roslyn source generators.

Supports System.Text.Json and MongoDB.Bson serialization.

Usage

Define a partial struct with the StronglyTypedId attribute.

using StronglyTypedId.Attributes;

[StronglyTypedId]
public partial struct UserId
{
}

Then the source generator will generate another partial struct and the required serializers for it.

About

Strongly Typed Ids (ULID) for C# which supports JSON and MongoDB.Bson serialization using roslyn incremental source generators

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages