.NET 7 Native.AOT, Trimming and Data Access

This page summarizes the projects mentioned and recommended in the original post on /r/dotnet

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • RdXmlLibrary

    Library of RD.xml files for NativeAOT

  • Regarding EF.Core, I've seen example rd.xml templates and references in GitHub about AOT trimming. I've spent a few hours trying to get EF.Core 7 to work, including trying pre-compiled models, but keep running into errors like this:

  • Entity Framework

    EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.

  • Regarding EF.Core, I've seen example rd.xml templates and references in GitHub about AOT trimming. I've spent a few hours trying to get EF.Core 7 to work, including trying pre-compiled models, but keep running into errors like this:

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • DapperAOT

    Build time tools in the flavor of Dapper

  • There are projects like Dapper.AOT, but the project has a long to-do list and it's not clear how active it is.

  • VestPocket

    👜 Single-file persisted lookup key/value database contained in a pure .NET 7.0+ library. All records persisted are kept in-memory for fast retrieval and synchronized with the file.

  • I'm working on Vest Pocket to be an AOT friendly data store for small and toy projects (or as a side-car data store), but it won't help you with database access.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts