qHs1XDp009U<00Izz00bZa0SG{#!36@cL|^&CJW|@4dBmog{Ae=dC$
+ Request ID:
+ Swapping to the Development environment displays detailed information about the error that occurred.
+
+ The Development environment shouldn't be enabled for deployed applications.
+ It can result in displaying sensitive information from exceptions to end users.
+ For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development
+ and restarting the app.
+
+ Contoso University is a sample application that
+ demonstrates how to use Entity Framework Core in an
+ ASP.NET Core Razor Pages web app.
+
+ You can build the application by following the steps in a series of tutorials.
+
+@* See the tutorial
+*@
+ You can download the completed project from GitHub.
+
+@* See project source code
+*@ Use this page to detail your site's privacy policy.
+ Create New
+Error.
+An error occurred while processing your request.
+
+@if (Model.ShowRequestId)
+{
+ @Model.RequestId
+ Development Mode
+@ViewData["Title"]
+
+Create
+
+Student
+
+Delete
+
+Are you sure you want to delete this?
+Student
+
+
+
+
+
+Details
+
+Student
+
+
+
+Edit
+
+Student
+
+Index
+
+
+
+
diff --git a/aspnetcore/data/ef-rp/intro/samples/cu90/Pages/Students/Index.cshtml.cs b/aspnetcore/data/ef-rp/intro/samples/cu90/Pages/Students/Index.cshtml.cs
new file mode 100644
index 000000000000..03e973b89217
--- /dev/null
+++ b/aspnetcore/data/ef-rp/intro/samples/cu90/Pages/Students/Index.cshtml.cs
@@ -0,0 +1,29 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.AspNetCore.Mvc.RazorPages;
+using Microsoft.EntityFrameworkCore;
+using ContosoUniversity.Data;
+using ContosoUniversity.Models;
+
+namespace ContosoUniversity.Pages.Students
+{
+ public class IndexModel : PageModel
+ {
+ private readonly ContosoUniversity.Data.SchoolContext _context;
+
+ public IndexModel(ContosoUniversity.Data.SchoolContext context)
+ {
+ _context = context;
+ }
+
+ public IList
+
+
+
+@foreach (var item in Model.Student) {
+
+ @Html.DisplayNameFor(model => model.Student[0].LastName)
+
+
+ @Html.DisplayNameFor(model => model.Student[0].FirstMidName)
+
+
+ @Html.DisplayNameFor(model => model.Student[0].EnrollmentDate)
+
+
+
+
+}
+
+
+ @Html.DisplayFor(modelItem => item.LastName)
+
+
+ @Html.DisplayFor(modelItem => item.FirstMidName)
+
+
+ @Html.DisplayFor(modelItem => item.EnrollmentDate)
+
+
+ Edit |
+ Details |
+ Delete
+
+ and