I have the following Linq query I'm working with entity framework.
var res = from a in _db.Articles
from auth in a.Authors
where papers.Contains(a.JoomlaId)
select auth.Institution;
The problem is that my institution class has a variable named "Type
" of type "InstitutionType
" that I need to include, and I have no idea how to do that.
var res = from a in _db.Articles.Include("Authors")
.Include("Authors.Institution")
.Include("Authors.Institution.Type")
from auth in a.Authors
where papers.Contains(a.JoomlaId)
select auth.Institution;