I am using asp.net, C # and EF4.
I am puzzled by this LINQ query:
var queryContents = from a in context.CmsContentsAssignedToes where a.UserId == myUserGuid join cnt in context.CmsContents on a.ContentId equals cnt.ContentId where cnt.TypeContent == myTypeContent & cnt.ModeContent == myModeContent select cnt;
I would like to write its equivalent in the syntax of the LINQ method for extracting CmsContents.
There are two types of entities in my conceptual model:
- Cmscontent
- CmsContentsAssignedTo
and their essence:
- Cmscontents
- CmsContentsAssignedToes
and navigation properties:
- in CmsContent -> CmsContentsAssignedTo RETURN: โ CmsContentsAssignedTo Instance
- in CmsContentsAssignedTo -> CmsContent RETURN: -> CmsContent instance
Do you know how to do this? I tried to learn more about this, but I canโt solve it!
Thank you for your time!
source share