diff --git a/aspnetcore/includes/RP/model2.md b/aspnetcore/includes/RP/model2.md index 560e17de15..a833040e6e 100644 --- a/aspnetcore/includes/RP/model2.md +++ b/aspnetcore/includes/RP/model2.md @@ -7,7 +7,8 @@ The `ID` field is required by the database for the primary key. ### Add a database context class -Add the following *MovieContext.cs* class to the *Models* folder: +Add the following *MovieContext.cs* class to the *Models* folder: + [!code-csharp[](../../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.