Summary

We started this chapter enumerating a number of things we couldn't implement due to our dummy data provider limitations. In order to overcome these, we chose to replace it with a real data provider built upon a persistent database.

ED Core seemed an obvious choice to get what we wanted, so we added its relevant packages to our project. We briefly enumerated the available data modeling approaches and we resorted to using code-first due to its flexibility.

Right after that, we proceeded to create our entity classes: Item, Comment, and ApplicationUser, together with a set of relationships taking advantage of the renowned EF's convention over configuration approach. Then we built our ApplicationDbContext class accordingly.

After completing our ...

Get ASP.NET Core: Cloud-ready, Enterprise Web Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.