Skip to content

Commit

Permalink
Link ConfigureServices text to app startup content (dotnet#6480)
Browse files Browse the repository at this point in the history
  • Loading branch information
guardrex authored and Rick-Anderson committed May 18, 2018
1 parent 57e676a commit 8e8824e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aspnetcore/tutorials/razor-pages/model.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)]

Expand Down

0 comments on commit 8e8824e

Please sign in to comment.