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.
— rahul sahay (@rahulsahay19) March 27, 2016
— Entity Framework (@efmagicunicorns) March 28, 2016
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.
Here, you can see that it start giving me reviews count as well, without lazy loading it was giving 0 always.
3,447 total views, 1 views today