From 17119c69d98432b5156171bb4bb8014c26c582dc Mon Sep 17 00:00:00 2001 From: Rick Anderson Date: Sat, 21 Oct 2017 12:05:12 -1000 Subject: [PATCH] fix snippet in add a model to Razor Page (#4612) * fix snip * fix snip --- aspnetcore/includes/RP/model2.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aspnetcore/includes/RP/model2.md b/aspnetcore/includes/RP/model2.md index ce7b236a91..778f447e41 100644 --- a/aspnetcore/includes/RP/model2.md +++ b/aspnetcore/includes/RP/model2.md @@ -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.