20.03.2024 | 

Webinar: .NET Native AOT – Data Access ohne EF Core, dafür mit Humble Objects

Das Interesse an Native AOT ist groß, seitdem es mit .NET 8 möglich ist, ASP.NET Core-Apps direkt als Maschinencode auszuliefern. Ein großes Problem besteht jedoch darin, dass Entity Framework Core derzeit nicht mit Native AOT kompatibel ist. In diesem Vortrag untersuchen wir Alternativen zur Gestaltung des Data Access Layers in Native-AOT-Projekten: Wir betrachten unterschiedliche Micro-ORMs und sehen uns an, wie wir mit Humble Objects (DB-Sessions) unsere Business-Logik klar von der Datenzugriffsschicht zu trennen. Das Ziel ist, eine Struktur zu schaffen, die fast so aussieht, als würden wir EF Core verwenden. Dabei gehen wir auch detailliert auf Patterns wie „Unit of Work“ und „Repository“ ein und erörtern, wie diese gewinnbringend in unserer Codebasis eingesetzt werden können.

Mehr Beiträge zu .NET Core, AOT, Entity Framework
Kenny Pflug ist Consultant bei Thinktecture und spezialisiert auf Architektur und Design von verteilten Systemen mit ASP.NET Core.

Moderation

Picture of Gøran Homberg

Gøran Homberg

Gøran Homberg ist Consultant bei Thinktecture und arbeitet mit unseren Kunden bzgl. deren Anforderungen, Projektansätzen und zugehörigem Projekt-Management.

Agenda

  • Code transformieren von Entity Framework Core zu ADO.NET
  • Wie kann man mit dem Humble Object Design Pattern Business-Logik von Data-Access-Logik trennen?
  • Wie passen Unit-of-Work und Repository ins Bild?
  • Welche Micro-ORMs können wir mit Native AOT nutzen?

Material & Video zu
".NET Native AOT – Data Access ohne EF Core, dafür mit Humble Objects"

Links aus dem Webinar:

Sie wünschen sich Unterstützung durch unsere Experten in Ihrem Projekt?

Slidedeck zu ".NET Native AOT – Data Access ohne EF Core, dafür mit Humble Objects"

Kommende Webinare: jetzt kostenlos anmelden

MCP: Plug & Pl-AI für KI-Integration eigener Daten & APIs

Christian Weyer | 16.07.2025 | 10:30 Uhr

Aktuelle Webinar-Aufzeichnungen

Weitere Artikel zu .NET Core, AOT, Entity Framework

.NET
pg

Smart Enums: Beyond Traditional Enumerations in .NET

Traditional C# enums often fall short when needing to associate data or behavior with constants, or ensure strong type safety. This article explores the "Smart Enum" pattern as a superior alternative. Leveraging the library Thinktecture.Runtime.Extensions and Roslyn Source Generators, developers can easily implement Smart Enums. These provide a robust, flexible, and type-safe way to represent fixed sets of related options, encapsulating both data and behavior directly within the Smart Enum. This results in more maintainable, expressive, and resilient C# code, overcoming the limitations of basic enums.
17.06.2025
.NET
pg

Value Objects: Solving Primitive Obsession in .NET

Overusing primitive types like string or int for domain concepts ("primitive obsession") causes bugs from missed validation, like invalid emails or negative monetary values. This article explores Value Objects as a .NET solution. Learn how these self-validating, immutable types prevent entire classes of errors, make code more expressive, and reduce developer overhead. We'll demonstrate creating robust domain models with minimal boilerplate, improving code quality without necessarily adopting full Domain-Driven Design, and see how Roslyn Source Generators make this practical.
03.06.2025
Database Access with Sessions
.NET
kp_300x300

Data Access in .NET Native AOT with Sessions

.NET 8 brings Native AOT to ASP.NET Core, but many frameworks and libraries rely on unbound reflection internally and thus cannot support this scenario yet. This is true for ORMs, too: EF Core and Dapper will only bring full support for Native AOT in later releases. In this post, we will implement a database access layer with Sessions using the Humble Object pattern to get a similar developer experience. We will use Npgsql as a plain ADO.NET provider targeting PostgreSQL.
15.11.2023
Old computer with native code
.NET
kp_300x300

Native AOT with ASP.NET Core – Overview

Originally introduced in .NET 7, Native AOT can be used with ASP.NET Core in the upcoming .NET 8 release. In this post, we look at the benefits and drawbacks from a general perspective and perform measurements to quantify the improvements on different platforms.
02.11.2023
.NET
kp_300x300

Optimize ASP.NET Core memory with DATAS

.NET 8 introduces a new Garbage Collector feature called DATAS for Server GC mode - let's make some benchmarks and check how it fits into the big picture.
09.10.2023
.NET CORE
pg

Roslyn Source Generators: Logging – Part 11

In previous part we lerned how to pass parameters to a Source Generator. In this article we need this knowledge to pass futher parameters to implement logging.
29.08.2023

Unsere Webinare

Unsere Artikel

Mehr über uns