我想知道如何在Linq中编写下列SQL语句。我尝试过,但没有运气。如何在Linq中编写SQL查询语句SQL
/*Variable*/
topicId = '4a31c2ee-48af-4b87-b300-112acb822ad0'
select * from Contents c
left join ContentToTopicRelations ctr on ctr.ContentId = c.ContentId and ctr.TopicId = topidId
where ctr.ContentId is null
基本上,我想获得的所有不在ContentToTopicRelations表特定topicId内容。
太好了!非常感谢。 – 2011-01-25 19:19:43