parent
6e3f35e1ff
commit
d66bbf8d8d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue