entity framework - Linq and a select with two tables -


I want to use this selection linq:

  content from cd.name Select ContentDetail CD where c.id_contentTypeID = contentTypeId and c.id_contentID = contentID and cd.id_contentID = c.contentID;  

I did the following but I do not know how to eliminate the query:

  var list = c in GuideContext.Content, GuideContext.ContentDetail in DC Where c.id_content == contentID & amp; Amp; Choose DC;   

This should work:

  var list = guide.context.ContentDetail in cd where cd.id_contentID == contentID & amp; Amp; Choose Cd.Content.id_contentTypeID == contentTypeId CD;  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -