如何对实体框架执行此 sql 查询?
select
id,
column1,
column2 = case when (select max(column2) from table1 b where b.id = a.id) = a.column2
then 'Positive' else 'Negative' end
from table1 a
如何对实体框架执行此 sql 查询?
select
id,
column1,
column2 = case when (select max(column2) from table1 b where b.id = a.id) = a.column2
then 'Positive' else 'Negative' end
from table1 a