From 4c0a4ab3a3d730f58d4533cfb328fa767dd786d2 Mon Sep 17 00:00:00 2001 From: Rick Anderson Date: Tue, 14 Nov 2017 08:14:35 -1000 Subject: [PATCH] Update adding-model4.md (#4785) --- aspnetcore/includes/mvc-intro/adding-model4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/includes/mvc-intro/adding-model4.md b/aspnetcore/includes/mvc-intro/adding-model4.md index 943ccb608d..27262a20bb 100644 --- a/aspnetcore/includes/mvc-intro/adding-model4.md +++ b/aspnetcore/includes/mvc-intro/adding-model4.md @@ -1,4 +1,4 @@ -The highlighted code above shows the movie database context being added to the [Dependency Injection](xref:fundamentals/dependency-injection) container. The line following `services.AddDbContext(options =>` is not shown (see your code). It specifies the database to use and the connection string. `=>` is a [lambda operator](https://docs.microsoft.com/dotnet/articles/csharp/language-reference/operators/lambda-operator). +The highlighted code above shows the movie database context being added to the [Dependency Injection](xref:fundamentals/dependency-injection) container (In the *Startup.cs* file). `services.AddDbContext(options =>` specifies the database to use and the connection string. `=>` is a [lambda operator](https://docs.microsoft.com/dotnet/articles/csharp/language-reference/operators/lambda-operator). Open the *Controllers/MoviesController.cs* file and examine the constructor: