I have a many-to-many relationship in which Content has ContentTags pointing to a tag. I created the corresponding [Include] attributes for my objects to create properties.
If I write enumerate ObjectContext.Contents.Include("ContentTags.Tag")
then I will get ContentTags and tags as expected. When I use a connection, however Content Content is missing in my Content object:
var contentsForTag =
from c in ObjectContext.Contents.Include("ContentTags.Tag")
join ct in ObjectContext.ContentTags on c.Id equals ct.ContentId
join t in ObjectContext.Tags on ct.TagId equals t.Id
where t.Name.ToLower().Contains(lowerTag)
select c;
Any ideas what is going on here?
Phill source
share