© Eric Vogel 2021
E. VogelBeginning Entity Framework Core 5https://doi.org/10.1007/978-1-4842-6882-7_16

16. Displaying Data on the Web

Eric Vogel1  
(1)
Okemos, MI, USA
 

In this chapter, I will cover how to display a list of people with their addresses on our ASP.NET Core Razor Pages application using Entity Framework Core 5. I will show how to use Visual Studio scaffolding to create the initial Razor Pages and then how to customize it to display addresses on the details page. Lastly, we will add a menu link named “Contacts” that points to the generated Index page.

Scaffolding UI

We are going to use Visual Studio to scaffold Create, Read, Update, and Delete Razor Pages using Entity Framework. To keep everything tidy, create a new folder named “Pages” ...

Get Beginning Entity Framework Core 5: From Novice to Professional 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.