diff --git a/aspnetcore/mvc/razor-pages/index.md b/aspnetcore/mvc/razor-pages/index.md index 7e28a822e4..fb247b0bfd 100644 --- a/aspnetcore/mvc/razor-pages/index.md +++ b/aspnetcore/mvc/razor-pages/index.md @@ -103,6 +103,10 @@ The data model: [!code-cs[main](index/sample/RazorPagesContacts/Data/Customer.cs)] +The db context: + +[!code-cs[main](index/sample/RazorPagesContacts/Data/AppDbContext.cs)] + The *Pages/Create.cshtml* view file: [!code-cshtml[main](index/sample/RazorPagesContacts/Pages/Create.cshtml)]