dotnetcore / dotnetcore/FreeSql

NET8 AOT 发布updaste报错 The binary operator Equal is not defined ,System.Reflection.Runtime.Typelnfos.RuntimeArrayTypelnfo

Open
#1,871 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.4k
Forks
910
PR merge metrics
No merged PRs in 30d

Description

第一次保存正常 , 再查询出来后update 就报错了

```c#
public async Task UpdateAsync(T entity)
{
_context.Set().Update(entity);
return await _context.SaveChangesAsync();
}
```
查询 issues发现
https://www.cnblogs.com/FreeSql/p/17836000.html
搜到一样的问题
尝试过
![image](https://github.com/user-attachments/assets/622c1917-0298-466f-8013-2408bbf8eaeb)
Roots.xml ps:帮助过我解决反射问题 但解决不了freesql问题
![image](https://github.com/user-attachments/assets/25264222-4548-43a7-938e-366f12df47a7)
增加了
```c#

```
但还是不行

正常运行是正常的
![image](https://github.com/user-attachments/assets/44eb64ae-92bc-4a6a-b1ac-e58bd36c6d43)
AOT后
![image](https://github.com/user-attachments/assets/fab2b76c-b32f-48f0-856d-def176ec867a)

#### 数据库版本
sqlite

#### 安装的Nuget包


#### .net framework/. net core? 及具体版本
net 8
freesql 3.2.833

以下
[AvaloniaAppFreeSqlTest最小复现代码.zip](https://github.com/user-attachments/files/16570201/AvaloniaAppFreeSqlTest.zip)
是源码

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.