Blog Posts

Convert UnixTime to DateTimeOffset with a custom System.Text.Json Converter

Convert UnixTime to DateTimeOffset with a custom System.Text.Json Converter

Some APIs do not follow standards, ignore ISO8601 and return UnixTime. This is not nice, but can be easily fixed with a custom converter for System.T

Accelerate your .NET build with Visual Studio 2022

Accelerate your .NET build with Visual Studio 2022

A little more than three months ago, Microsoft integrated a new functionality into Visual Studio 2022: Build Acceleration. This mechanism, which can

Re-use EF Core Expressions to avoid redundant queries

Re-use EF Core Expressions to avoid redundant queries

I often see snippets in EF Core code reviews such as the following: dbContext.Users.Where( user => user.Id == id ); The query filter user => u

Easy InMemory Unit Tests with EFCore and Sqlite

Easy InMemory Unit Tests with EFCore and Sqlite

Unit testing is a type of software testing that is performed on the smallest unit of a software application, called a "unit". A unit can be

Better Code with custom Strong-Id Types

Better Code with custom Strong-Id Types

In many software architectures the problem exists that there are methods, which are specified a multiplicity of type-same parameters, whose meaning i

Value Converters in EFCore

Value Converters in EFCore

In the field of software development, data transformation plays a key role in ensuring that information flows seamlessly between different components

Simplify string formatting with SmartFormat.NET

Simplify string formatting with SmartFormat.NET

String formatting is a common task in software development and allows you to create dynamic and informative output. Traditional approaches such as st

Neuerungen in .NET 8

Neuerungen in .NET 8

Noch ein halbes Jahr bis zum Release von .NET 8 - Zeit sich anzuschauen, was wir neues erwarten dürfen. LTS Release .NET 8 ist erneut ein LTS-Release

Detect Windows 10 and Windows 11 with .NET

Detect Windows 10 and Windows 11 with .NET

Version numbers have always been a rather weird maintained matter under Windows; however, it became particularly bad with Windows 10, respectively 11

Using Azure DevOps Pipeline Variables in PowerShell Script Files

Using Azure DevOps Pipeline Variables in PowerShell Script Files

Azure Pipelines inherently provides the ability for PowerShell scripts to be defined and executed inline. - task: AzureCLI@2 displayName: Bicep app