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
Post a Comment