Quantcast
Channel: csharp.christiannagel.com
Browsing latest articles
Browse All 36 View Live

Image may be NSFW.
Clik here to view.

Using MySQL in a Docker container with EF Core

Recently I’ve been asked for a sample using EF Core with MySQL. When using EF Core I’m using Micorosft SQL Server or Azure Cosmos DB – and you have many code samples for EF Core in my book...

View Article



--- Article Not Found! ---

*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***

View Article

--- Article Not Found! ---

*** *** *** RSSing Note: Article is missing! We don't know where we put it!!. *** ***

View Article

Image may be NSFW.
Clik here to view.

EF Core Mapping with TpH, Generic Types and Value Conversion

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

View Article

Image may be NSFW.
Clik here to view.

System.Text.Json Serializing Hierarchical Data

The System.Text.Json serializer that was introduced with .NET Core 3.0 gets new features with every new .NET version. With .NET 7, features such as type hieararchies, contract customization, and...

View Article


Image may be NSFW.
Clik here to view.

Calling Web APIs using the dotnet CLI and HTTP Files with Visual Studio

Visual Studio 2022 17.5 includes new HTTP client tooling. This tool makes it easy to create API calls directly from Visual Studio, with a great output of the API results. It’s easy to directly debug...

View Article

Image may be NSFW.
Clik here to view.

Primary Constructors with C#

To reduce the syntax needed when writing C# code, C# 9 added records with primary constructors. C# 10 then added records for structs. Using C# 12 you can create classes with primary constructors. This...

View Article

Image may be NSFW.
Clik here to view.

Converting Strings to .NET Objects – IParsable and ISpanParsable

A new feature of C# 11 allows abstract static members with interfaces. This makes it possible to define class methods to be used as a contract with a generic class implementation, e.g. using + and –...

View Article


Image may be NSFW.
Clik here to view.

Web API Updates with .NET 8

Preview 3 of .NET 8 includes a new project templates to create an API with a TODO service instead of the weather forecast . Looking into the generated code of this template, there are a lot more...

View Article


Image may be NSFW.
Clik here to view.

Minimal API growing with .NET 7

To create REST API services with Microsoft .NET, the Minimal API was introduced with .NET 6. The minimal API makes use of top-level statements and is based on some C# language enhancements such as...

View Article
Browsing latest articles
Browse All 36 View Live




Latest Images