Josef Ottosson

Freelancing Developer ยท Microsoft MVP

Subscribe via RSS
© Josef Ottosson 2026
jos.enumeration

Creating a Roslyn Analyzer to ensure that no duplicate values are added at compile time

A custom Roslyn Analyzer with compile time support for detecting duplicate enumeration items when creating enumeration classes.

3 years ago July 18th, 2023 6 min read
dotnet

EF Core - Add a test to ensure that you don't forget to add new migrations

Add a test that reminds you to create migrations (if you've forgotten).

3 years ago July 14th, 2023 2 min read
jos.enumeration

JOS.Enumeration - Now using source generators

By using source generators, we can speed up the retrieval of enumeration values quite a bit!

3 years ago June 5th, 2023 6 min read
jos.enumeration

JOS.Enumeration - System.Text.Json support

Custom JsonConverter that only writes the integer value of our Enumeration class. It also supports deserialization by only supplying the Enumeration value.

3 years ago May 29th, 2023 3 min read
jos.enumeration

JOS.Enumeration - store in database (EF Core and Dapper)

Adds support for storing JOS.Enumeration values in a database using EF Core and/or Dapper.

3 years ago May 12th, 2023 3 min read
Subscribe via RSS
© Josef Ottosson 2026