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

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

@ngrx/signals: Reaktives State-Management auf Komponentenebene

Yannick Baron | 03.04.2024 | 10:30 Uhr

Transparente AI: Tracing- und Debugging-Techniken für LLM-Anwendungen

Marco Frodl | 15.05.2024 | 10:30 Uhr

Weitere Artikel zu .NET Core, AOT, Entity Framework

Database Access with Sessions
.NET
KP-round

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

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

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

Incremental Roslyn Source Generators: High-Level API – ForAttributeWithMetadataName – Part 8

With the version 4.3.1 of Microsoft.CodeAnalysis.* Roslyn provides a new high-level API - the method "ForAttributeWithMetadataName". Although it is just 1 method, still, it addresses one of the biggest performance issue with Source Generators.
16.05.2023
.NET
sg

.NET 7 Performance: Regular Expressions – Part 2

There is this popular quote by Jamie Zawinski: Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems."

In this second article of our short performance series, we want to look at the latter one of those problems.
25.04.2023
.NET
sg

.NET 7 Performance: Introduction and Runtime Optimizations – Part 1

.NET 7 is fast. Superfast. All the teams at Microsoft working on .NET are keen to improve the performance and do so every year with each new .NET release. Though this time the achievements are really impressive. In this series of short articles, we want to explore some of the most significant performance updates in .NET and look at how that may affect our own projects. This first article is taking a deep look under the hood of the compiler and the runtime to look for some remarkably interesting and significant updates.
28.03.2023

Unsere Webinare

Unsere Artikel

Mehr über uns