在ASP.NET MVC中转换查询SQL Server
我想在.NET MVC中使用以下SQL Server查询,
select *
from table1
where a = 1
and b not in (select fk_b from table2 where c = 1)
但我不知道如何?
entity.table1.Where(record => record.a== 1 && record ....???
I want to use the SQL Server query below in .NET MVC
select *
from table1
where a = 1
and b not in (select fk_b from table2 where c = 1)
But I don't know how?
entity.table1.Where(record => record.a== 1 && record ....???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在LINQ查询语法中,查询应为:
在方法表达式中,
In LINQ query syntax, the query should be:
While in method expression,