Lazy Loading is Missing in Entity Framework 7

Hi Friends,

I thought to share my yet another experience with Entity Framework 7 where Lazy Loading is still not implemented. I was actually designing my Movie-Review API and soon after that I realized that results are unexpected, hence without wasting time, I directly checked with Microsoft. Here, is my conversation with Microsoft.

Therefore, below is the glimpse of the snippet, which was expected to work and workaround which I have written to give the expected results.

With this change in place, it produced me the expected result as shown below.

74th

Here, you can see that it start giving me reviews count as well, without lazy loading it was giving 0 always.

Thanks,
Rahul Sahay
Happy Coding

3,297 total views, 1 views today

One thought on “Lazy Loading is Missing in Entity Framework 7

Comments are closed.