Linq-to-entities - Include() method not loading

Posted by Lee Atkinson on Stack Overflow See other posts from Stack Overflow or by Lee Atkinson
Published on 2009-04-27T16:32:06Z Indexed on 2010/04/19 19:23 UTC
Read the original article Hit count: 604

Filed under:
|

Hi

If I use a join, the Include() method is no longer working, eg:

from e in dc.Entities.Include("Properties")
join i in dc.Items on e.ID equals i.Member.ID
where (i.Collection.ID == collectionID) 
select e

e.Properties is not loaded

Without the join, the Include() works

Lee

© Stack Overflow or respective owner

Related posts about LINQ

Related posts about entity-framework