在SQL中,为了使用DISTINCT语句,我使用了join
来实现,代码如下:
select distinct
col1
from
table1 a
inner join
table2 b on a.code = b.vcode
如何在Entity Framework中使用LINQ实现相同的功能?
请给我建议。
在SQL中,为了使用DISTINCT语句,我使用了join
来实现,代码如下:
select distinct
col1
from
table1 a
inner join
table2 b on a.code = b.vcode
如何在Entity Framework中使用LINQ实现相同的功能?
请给我建议。