From 8e8824e0d2a167298c39c14eedec4f18b361d779 Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Fri, 18 May 2018 12:24:37 -0500 Subject: [PATCH] Link ConfigureServices text to app startup content (#6480) --- aspnetcore/tutorials/razor-pages/model.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/tutorials/razor-pages/model.md b/aspnetcore/tutorials/razor-pages/model.md index 8368dfbbca..edc575baec 100644 --- a/aspnetcore/tutorials/razor-pages/model.md +++ b/aspnetcore/tutorials/razor-pages/model.md @@ -33,7 +33,7 @@ Add a connection string to the *appsettings.json* file. ### Register the database context -Register the database context with the [dependency injection](xref:fundamentals/dependency-injection) container in the *Startup.cs* file. +Register the database context with the [dependency injection](xref:fundamentals/dependency-injection) container in the [ConfigureServices method of the Startup class](xref:fundamentals/startup#the-startup-class) (*Startup.cs*): [!code-csharp[](../../tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie/Startup.cs?name=snippet_ConfigureServices&highlight=3-5,7-9)]