Skip to main content

.NET Native AOT – Data Access without EF Core, Using Humble Objects Instead

Event:Thinktecture Webinar
Type:Webinar
Date:March 20, 2024
Duration:1h
Location:Online
Language:German

In this webinar, we identify how we can implement database access layers in .NET Native AOT apps without the help of EF Core. We use the Humble Object design pattern to separate the business logic from ADO.NET calls to PostgreSQL.

Event Details

.NET Native AOT Data Access without EF Core Video on YouTube

Interest in Native AOT has grown significantly since .NET 8 introduced the ability to deliver ASP.NET Core applications directly as machine code. However, a major challenge remains: Entity Framework Core is currently not compatible with Native AOT.

In this session, we explore alternative approaches for designing the data access layer in Native AOT projects. We’ll examine various micro-ORMs and demonstrate how to use Humble Objects (database sessions) to clearly separate business logic from the data access layer. The goal is to create a structure that feels almost as seamless as working with EF Core.

We’ll also take a closer look at patterns such as Unit of Work and Repository, discussing how these can be effectively leveraged to build a clean and maintainable codebase.

More Information