When a database model is created using Entity Framework 5 and the databases populated, lists in the database are not correctly displayed on the first database query of a session. Attached is a sample application that demonstrates this behavior.
Repro steps:
create a new Console Application
Add EF5 NuGet Package
Replace Program.cs with attached code.
run application
use option 1 to populate the database
run again using option 2 to view blogs
notice that on pass0 we don't see any of the posts belonging to the blogs and in pass1 the lists are populated
Repro steps:
create a new Console Application
Add EF5 NuGet Package
Replace Program.cs with attached code.
run application
use option 1 to populate the database
run again using option 2 to view blogs
notice that on pass0 we don't see any of the posts belonging to the blogs and in pass1 the lists are populated