Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Edited Issue: Lazy loading doesn't populate results in initial query [485]

$
0
0
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

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>