Merge pull request #4522 from tientq/patch-1

add db context
pull/4524/head
Scott Addie 2017-10-09 11:29:53 -05:00 committed by GitHub
commit 19acf7f85f
1 changed files with 4 additions and 0 deletions

View File

@ -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)]