Adds instructions to create new data folder (#13588)

Fixes #13586
pull/13592/head
mattielee 2019-07-31 10:37:11 -07:00 committed by Rick Anderson
parent 6e3f35e1ff
commit d66bbf8d8d
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
### Add a database context class
In the RazorPagesMovie project, create a new folder called *Data*.
Add the following `RazorPagesMovieContext` class to the *Data* folder:
[!code-csharp[](~/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie22/Data/RazorPagesMovieContext.cs)]
@ -81,4 +82,4 @@ Register the database context with the [dependency injection](xref:fundamentals/
[!code-csharp[](~/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie22/Startup.cs?name=snippet_UseSqlite&highlight=11-12)]
Build the project as a check for errors.
::: moniker-end
::: moniker-end