O'Reilly logo

ASP.NET Core: Cloud-ready, Enterprise Web Application Development by James Singleton, Valerio De Sanctis, Mugilan T. S. Ragupathi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required