注册

(bug)EFCore.Dm5.0中使用bit类型,ef转换成了not函数,引起报错

DM_491007 2021/09/23 1438 11

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:DM8
【操作系统】:ubuntu
【CPU】:
【问题描述】*:
实体类型定义如下
public class Tb{ public bool IsRead{get;set;} }

数据库为
Tb
IsRead [bit]

通过linq
var items = db.Tb.Where(t => !t.IsRead).ToList();

生成sql为
select * from “Tb”
where NOT(“IsRead”)

报错信息为
无法解析的成员访问表达式[“IsRead”]

回答 0
暂无回答
扫一扫
联系客服