SQL 到 Linq to Entities 的转换
我无法将此 SQL 转换为 Linq To Entities。有人可以解释一下我应该如何分解它吗?
select
p.ID, p.Name, p.IsActive, ug.Name
from
Projects as p
inner join UserGroups as ug ON p.UserGroups_ID = ug.ID
where
p.UserGroups_ID IN (select UserGroups_ID from UsersToUserGroups where Users_ID = 1)
and
p.IsDeleted = 0
order by
p.UserGroups_ID,
p.Name
谢谢
I'm having trouble to convert this SQL to Linq To Entities. Can someone explain me how I should break it down?
select
p.ID, p.Name, p.IsActive, ug.Name
from
Projects as p
inner join UserGroups as ug ON p.UserGroups_ID = ug.ID
where
p.UserGroups_ID IN (select UserGroups_ID from UsersToUserGroups where Users_ID = 1)
and
p.IsDeleted = 0
order by
p.UserGroups_ID,
p.Name
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)