M
MCohen75
I have a couple entities setup with associations. A ReleasePackage has many
Conent entities. For the ReleasePackages in the list, I want to get all
Conent entities. This is like a simple join, here's the code:
IList<Content> contentList =
(from p in this.ReleasePackage
from c in p.Content
select c).ToList<Content>();
For some reason this doesn't work, I get zero results in the list.
I did call Load on the ReleasePackage (which is an association from another
entity) prior to the statement above.
If I manually iterate over the ReleasePackage entities and access the
Content association on each, I get the correct records.
What gives?
--Mike
Conent entities. For the ReleasePackages in the list, I want to get all
Conent entities. This is like a simple join, here's the code:
IList<Content> contentList =
(from p in this.ReleasePackage
from c in p.Content
select c).ToList<Content>();
For some reason this doesn't work, I get zero results in the list.
I did call Load on the ReleasePackage (which is an association from another
entity) prior to the statement above.
If I manually iterate over the ReleasePackage entities and access the
Content association on each, I get the correct records.
What gives?
--Mike