LINQ to Entities 查询,用于从 co 表中选择内容并将该表与 cotypes whereco 连接。 cotype =“某个值”; c.someId 是 Max?
以下 SQL 查询的 LINQ to Entities 查询是什么?
select Verbiage.verbiage
from Verbiage
join Verbiage_Types on Verbiage.verbiage_type_id=Verbiage_Types.verbiage_type_id
where Verbiage_Types.verbiage_type='ENROLLMENT'
group by Verbiage.verbiage,Verbiage.sequence
having Verbiage.sequence=(
select MAX(Verbiage.sequence)
from Verbiage
join Verbiage_Types on Verbiage.verbiage_type_id=Verbiage_Types.verbiage_type_id
where Verbiage_Types.verbiage_type='ENROLLMENT')
What will be the LINQ to Entities query for the following SQL Query ?
select Verbiage.verbiage
from Verbiage
join Verbiage_Types on Verbiage.verbiage_type_id=Verbiage_Types.verbiage_type_id
where Verbiage_Types.verbiage_type='ENROLLMENT'
group by Verbiage.verbiage,Verbiage.sequence
having Verbiage.sequence=(
select MAX(Verbiage.sequence)
from Verbiage
join Verbiage_Types on Verbiage.verbiage_type_id=Verbiage_Types.verbiage_type_id
where Verbiage_Types.verbiage_type='ENROLLMENT')
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不确定,但如果这不能做到这一点,那就非常接近了?
I'm not certain, but if this doesn't do it, it's pretty close?
实际上答案是
actually the answer is