I'm new to EF and I have two tables, the first called ContestEntry and the second Items which has a one to many relationship with ContestEntry. I'm trying to access Contest Entries and then from there get the related Item information. Here is the code I'm using.
ContestEntry cEntry =
Ctx.ContestEntries.Include("Item").Where(ce => ce.ID == 4).First();
The problem is that the Item relationship is NULL when I look at it in the debugger.
I'm probably missing something just not sure. Any help would be appreciated.
Thank You!