Josef Ottosson

Freelancing Developer ยท Microsoft MVP

Subscribe via RSS
© Josef Ottosson 2023
Ghost & StayPuft

c-sharp

A collection of 31 posts

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.

6 days 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.

23 days ago May 12th, 2023 3 min read
c-sharp

Prefix IDistributedCache keys

By using the decorator pattern we can handle prefixing of IDistributedCache keys in a single place

4 months ago February 7th, 2023 3 min read
c-sharp

Bonus - Builder Pattern with the implicit operator using c#

By using the implicit operator we can skip the Build method on our builders

7 months ago October 21st, 2022 1 min read
Enumeration class in C# using records
jos.enumeration

Enumeration class in C# using records

Let's see if we can optimize the Enumeration class provided by Microsoft in "eShopOnContainers"...

9 months ago September 17th, 2022 7 min read
Subscribe via RSS
© Josef Ottosson 2023
Ghost & StayPuft