linq/ef查询数量与sql数量不匹配
(2022-09-09 15:18:31)select * from [dbo].[sss] where Delete !=
1
两个数量不相等是因为linq 自动过滤 为null的值
sql应该
select * from [dbo].[sss] where Delete !=
1 or Del is
null
或
select * from [dbo].[sss] where ISNULL(Del,0) !=
1 0根据业务