[Failed] Try to implement NativeAOT support.

Add: NativeAOT support with EF Core. However failed for compiled binary throw Exception in queries. Wait for a stable support for NativeAOT.

Add: document for intergration EF Core with NativeAOT.
This commit is contained in:
2025-07-11 16:07:14 +08:00
parent 8b18de1735
commit eb021576a5
9 changed files with 498 additions and 2 deletions

View File

@ -0,0 +1,25 @@
// <auto-generated />
using System;
using System.Runtime.CompilerServices;
using OptixServe.Core.Models;
#pragma warning disable 219, 612, 618
#nullable disable
namespace OptixServe.Infrastructure.Data.CompiledModels
{
public static class UserUnsafeAccessors
{
[UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Id>k__BackingField")]
public static extern ref string Id(User @this);
[UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<Password>k__BackingField")]
public static extern ref string Password(User @this);
[UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<PrivilegeGroup>k__BackingField")]
public static extern ref PrivilegeGroup PrivilegeGroup(User @this);
[UnsafeAccessor(UnsafeAccessorKind.Field, Name = "<UserName>k__BackingField")]
public static extern ref string UserName(User @this);
}
}