Link ConfigureServices text to app startup content (#6480)

pull/6474/merge
Luke Latham 2018-05-18 12:24:37 -05:00 committed by Rick Anderson
parent 57e676a702
commit 8e8824e0d2
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ Add a connection string to the *appsettings.json* file.
<a name="reg"></a>
### 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)]