I think that there\'s a similar post on here about this but not exactly the same...
I have two entities in my EF model - let\'s call them Person and Developer, with
How about this:
var results = from developer in ctx.Employee.OfType()
select new {developer, Qualifications = developer.Qualifications};
To things are interesting here:
if you subsequently do this:
var developers = from anon in developers.AsEnumerable()
select anon.Developer;
You will get just developers, and they will have their Qualifications loaded too.
See Tip 1 for more info on why this works
Hope this helps
Alex