How do I fulfill this request using L2E?
4 answers
I think you need something like
Give me all Activities which ID are in a list of ActivitiyKeywords.ID's
If this is your question, you can try this:
var ids = from k in db.ActivityKeywords select k.ActivityID;
var result = from a in db.Activities where ids.Contains(a.ID) select a;
More information here .
0
source to share