EF Core has powerful options to map your domain model to a relational database. In this article, I’ll show you how to use the Fluent API to configure a hierarchy of generic classes to map to a single table, and to convert a collection to a store a single string in the database. #dotnet #efcore Continue reading EF Core Mapping with TpH, Generic Types and Value Conversion
Creating Windows applications, UI controls are bound to the UI thread. .NET made it to different iterations with different patterns dealing with asynchronous programming. .NET 4.0 introduced the Task Parallel Library (TPL) and C# 5 added the async and await keywords. Together with these enhancements of .NET, and the synchronization context, invoking methods that make use of different threads has becoming a lot easier. Continue reading What’s the SynchronizationContext used for?
This article shows how to use dotnet publish to create a Docker image without using a Dockerfile – including deployment with GitHub Actions. Continue reading No more Dockerfiles with the help of .NET CLI
Running MySQL in a Docker container, and accessing it from EF Core Continue reading Using MySQL in a Docker container with EF Core
The last time the [Thrive conference](https://thriveconf.com) was held was in 2019. Now it’s happening again May, 24-25 2022 in Bistrica, Slovenia. I’m excited to give two presentations and a one-day workshop. Are you attending in-person? Continue reading Thrive Conference in Slovenia
Windows services are programs that are automatically started when the system starts up, or when the user logs in. They run in the background and can run with a different account than the logged-in user. .NET makes it easy to create Windows services or Linux daemons as shown in this article. Continue reading Creating a Windows Service with .NET 6
Upgrading an ASP.NET Core 5 application to .NET 6, all what needs to be done is to change the project file for .NET 6, and update the NuGet packages to the new versions, and you’re done and can build and run the application. However, to take advantage of new features, and reduce the number of source code lines, some things can be changed – as shown in this article. Continue reading Upgrading an ASP.NET Core Web API Project to .NET 6
Exceptions of type NullReferenceException are the most common errors with .NET applications. With C# 8, nullable reference types have been introduced to get rid of these exceptions. The new .NET 6 and C# 10 project templates turn on nullable reference types. Over the times, many features in regard to nullability have been added to C#! This article shows many of these features. Continue reading C# Nullable Features thru the times
Azure Active Directory B2C (business-to-consumer) is a version of the Azure Active Directory that allows users (consumers) to register with the application.
This article shows how to create an ASP.NET Core application to use this great Azure service. Continue reading Using Azure Active Directory B2C with .NET