fix snippet in add a model to Razor Page (#4612)

* fix snip

* fix snip
pull/4613/head
Rick Anderson 2017-10-21 12:05:12 -10:00 committed by GitHub
parent ce1f789475
commit 17119c69d9
1 changed files with 1 additions and 2 deletions

View File

@ -8,7 +8,6 @@ The `ID` field is required by the database for the primary key.
### Add a database context class
Add a `DbContext` derived class named *MovieContext.cs* to the *Models* folder.
[!code-csharp[Main](../../tutorials/razor-pages/razor-pages-start/snapshot_sample/RazorPagesMovie/Models/MovieContext.cs]
[!code-csharp[Main](../../tutorials/razor-pages/razor-pages-start/snapshot_sample/RazorPagesMovie/Models/MovieContext.cs)]
The preceding code creates a `DbSet` property for the entity set. In Entity Framework terminology, an entity set typically corresponds to a database table, and an entity corresponds to a row in the table.