Josef Ottosson

Freelancing Developer ยท Microsoft MVP

Subscribe via RSS
© Josef Ottosson 2026
dotnet

C# - Tips and Tricks 03 - Use static initialization

Static initialization can help make your code a bit more readable and at the same time give you a performance boost, a win-win.

2 years ago March 25th, 2024 2 min read
asp.net core

Using the X-Forwarded-Prefix header to prefix your HATEOAS links in your API

Use the X-Forwarded-Host and X-Forwarded-Prefix to manipulate your HATEOAS links in your API responses.

2 years ago February 13th, 2024 3 min read
postgres

Streaming files to Postgres - dotnet core

Storing files in a database without allocating like crazy? Let's see how we can stream files to Postgres with dotnet core and npgsql.

2 years ago January 22nd, 2024 4 min read
httpclient

Customize the HttpClient logging - dotnet core

How to customize the HttpClient logging

2 years ago December 15th, 2023 2 min read
dotnet

Migrate your database with Entity Framework Core using a separate application

Migrate your database using a dedicated application that's responsible for migrating, seeding and clearing your database.

3 years ago November 20th, 2023 5 min read
Subscribe via RSS
© Josef Ottosson 2026