ASP.NET Core: Cloud-ready, Enterprise Web Application Development
by Mugilan T. S. Ragupathi, Valerio De Sanctis, James Singleton
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access