An example showing an auto-generated table using the public view model properties.
Id | First | Last | Birth Date | Favorite Color | Full Name | |
---|---|---|---|---|---|---|
26 | Wanda | Duncan | 1958-06-01 | imperdiet@tinciduntcongueturpis.co.uk | Wanda Duncan | |
27 | Morgan | Obrien | 1956-06-14 | enim.nec.tempus@utpharetra.com | Morgan Obrien | |
28 | Keiko | Vasquez | 1995-07-12 | odio.a@odioetiamligula.co.uk | Keiko Vasquez | |
29 | Benjamin | Anderson | 1960-10-01 | mauris.nulla@mifelis.com | Benjamin Anderson | |
30 | Jin | Savage | 1991-09-29 | semper.auctor@malesuadaintegerid.ca | Jin Savage |
Markup
@model IPagedList<BasicPersonView> <table class="table" asp-for="@Model" />