Entity Framework 3 - Migrations

Entity Framework 3 - Migrations

Install EF Core 3 Migration tools The tooling of the Entity Framework Core Migrations comes via NuGet (and dotnet tooling). dotnet tool install --glo

Custom PasswordHasher in ASP.NET Core Identity

Custom PasswordHasher in ASP.NET Core Identity

In the ASP.NET Core Identity environment, the PasswordHasher is responsible for securely storing the password and performing password entry checks. I

Unit Testing with Entity Framework Core 3

Unit Testing with Entity Framework Core 3

This post covers the basic structure for unit tests with Entity Framework Core. Note: Unit tests are only there to test the respective logic. Unit t

Custom Model Binders in ASP.NET Core

Custom Model Binders in ASP.NET Core

What are Model Binders? ModelBinders are required in ASP.NET Core to pass parameters from HTTP requests into a controller action method. For example,

Use SignalR in MediatR Notifications

Use SignalR in MediatR Notifications

SignalR is a wonderful, easy and fast way to provide users with push messages - and is also built into ASP.NET Core 3. In this short code sample I s

IoT Plattformen: Make or Buy

IoT Plattformen: Make or Buy

Die Digitalisierung kommt langsam aber sicher auch in den großen deutschen Firmen an: sowohl im Mittelstand wie auch im Enterprise-Umfeld. Für die me

Microsoft Elite Controller Series 2 Unboxing

Microsoft Elite Controller Series 2 Unboxing

Pünktlich am Tag des Release um 11 Uhr klingelte der Postbote und brachte mir meinen schon im September bestellten XBOX Controller Elite 2 Series. Na

Use a MSSQL Server 2017 Docker Container with Full-Text Search Support

Use a MSSQL Server 2017 Docker Container with Full-Text Search Support

By default, there is currently no Full-Text Search Support in the Docker Images for Microsoft SQL Server 2017 or 2019 by Microsoft. The only option c

Enable CodeLens in Visual Studio 2019

Enable CodeLens in Visual Studio 2019

At the moment it happens to me more often that CodeLens is not active in Visual Studio. Unfortunately I couldn't find out if this is in bug in the cu

Read System Properties like CPU Temperatures with .NET Core

Read System Properties like CPU Temperatures with .NET Core

Through a forum post I discovered the NuGet package OpenHardwareMonitorLibCore, and wanted to test it. Apparently this is a wrapper of a very popula

Using ASP.NET Core 3 in .NET libraries

Using ASP.NET Core 3 in .NET libraries

With the release of ASP.NET Core 3, Microsoft has also changed the way how to use and reference ASP.NET Core dependencies. In the past you could use

Windows 10: disable app auto start

Windows 10: disable app auto start

By default, Windows 10 starts all applications that were open before starting or restarting a system. I don't know anyone who thinks this functionali

Outlook: failed to add Office 365 account

Outlook: failed to add Office 365 account

For several months now there has been a bug(!?) in Outlook that often prevents Office 365 accounts from being added. The error message Outlook reveal

Microsoft MVP 2019 - .NET and Azure

Microsoft MVP 2019 - .NET and Azure

It was this time again: the annual cycle of the Microsoft MVP re-nomination. Thousands of MVPs sat in front of their computers on the first of July h

Azure IoT: send messages with C#

Azure IoT: send messages with C#

Requirements You must have created an IoT Hub in Azure. You must have created a device in your created Azure IoT Hub. You need the connection string

Setting up an Azure IoT Hub

Setting up an Azure IoT Hub

The Azure IoT Hub is a highly scalable, secure platform for the bidirectional communication of devices and software components in the sense of IoT -

ASP.NET Core Serverless on AWS Lambda

ASP.NET Core Serverless on AWS Lambda

Serverless Serverless is on everyone's lips; in the .NET area it means mainly Azure Functions. In principle Serverless is all about not having to wor

Resize Images with .NET Core

Resize Images with .NET Core

To resize images like PNG, JPEG, JPG and Co using .NET Core, there is no SDK support available today. But the Microsoft Mono team has written a wrapp

Add custom claims to token in Auth0

Add custom claims to token in Auth0

By default, the token of Auth0 does not contain any information about the user's name. The default claim for the name would be: http://schemas.xmlsoa

AWS Toolkit for Visual Studio 2019

AWS Toolkit for Visual Studio 2019

AWS (Amazon Web Services) offers an extra toolkit for Visual Studio 2017 and Visual Studio 2019 that integrates seamlessly to create projects based o

Upload to Azure Storage with PHP

Upload to Azure Storage with PHP

I had the wonderful task to change a 20 year old PHP software during a Lift-and-Shift migration to Azure, so that it doesn't store files directly in

Update Azure Storage Blob Properties with PowerShell

Update Azure Storage Blob Properties with PowerShell

In the past days I uploaded a lot of files to an Azure Blob Storage using the Azure Storage Explorer. Unfortunately, I forgot to specify system prope

Run MSSQL on Docker for Windows

Run MSSQL on Docker for Windows

For some time now, Microsoft has been providing various MSSQL Server versions for Docker - for Linux and for Windows. This means that spending a few

Twitch MediatR with ASP.NET Core

Twitch MediatR with ASP.NET Core

Twitch Twitch is the leading streaming platform for video games and Co. Starting small, Twitch hosts monthly over 3.5 million streamers that can be w

Fast SQL-Insert with C# and SqlBulkCopy

Fast SQL-Insert with C# and SqlBulkCopy

In .NET, there is a very fast and easy way to pump a variety of entities into an SQL database: SqlBulkCopy public void BulkInsert<TEntity>(stri

Load an image into a byte-array with C#

Load an image into a byte-array with C#

This pretty simply snippet exports your Image into a byte-array. public static byte[] ToByteArray(this System.Drawing.Image image) { using(Memory

Download a file with .NET

Download a file with .NET

The most current and currently recommended way to download .NET Framework, .NET Standard or .NET Core files from the Internet is the HttpClient class

Use a GoPro Hero as Webcam

Use a GoPro Hero as Webcam

The GoPro Hero series is the most popular action cam on the market. The current GoPro Hero 7 also offers USB-C, a micro-HDMI port as well WiFi and Bl