Thanks for reading this.
Say there are three tables:
The following query will return TagName associated with Posts:
var myPost = (from bp in db.Posts
where bp.PostID == postId
tags = from p in bp.PostTagPairs select p.PostTag.TagName
Question is how do you get the query above to return PostTagID along with TagName and iterate it in a for loop?
foreach(?? in myPost.tags)