From fea3ca8c7f338fb81245142fc2d7e0f099a17afe Mon Sep 17 00:00:00 2001 From: Rick Anderson Date: Mon, 1 May 2017 21:11:44 -1000 Subject: [PATCH] Update working-with-sql.md --- aspnetcore/tutorials/first-mvc-app/working-with-sql.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/tutorials/first-mvc-app/working-with-sql.md b/aspnetcore/tutorials/first-mvc-app/working-with-sql.md index d1c4886456..4f1faf6544 100644 --- a/aspnetcore/tutorials/first-mvc-app/working-with-sql.md +++ b/aspnetcore/tutorials/first-mvc-app/working-with-sql.md @@ -18,11 +18,11 @@ By [Rick Anderson](https://twitter.com/RickAndMSFT) The `MvcMovieContext` object handles the task of connecting to the database and mapping `Movie` objects to database records. The database context is registered with the [Dependency Injection](xref:fundamentals/dependency-injection) container in the `ConfigureServices` method in the *Startup.cs* file: -[!code-csharp[Main](start-mvc/sample/MvcMovie/Startup.cs?name=snippet_cs&highlight=6-8)] +[!code-csharp[Main](start-mvc/sample/MvcMovie/Startup.cs?name=snippet_cs&highlight=7)] The ASP.NET Core [Configuration](xref:fundamentals/configuration) system reads the `ConnectionString`. For local development, it gets the connection string from the *appsettings.json* file: -[!code-javascript[Main](start-mvc/sample/MvcMovie/appsettings.json?highlight=3&range=8-10)] +[!code-javascript[Main](start-mvc/sample/MvcMovie/appsettings.json?highlight=2&range=8-10)] When you deploy the app to a test or production server, you can use an environment variable or another approach to set the connection string to a real SQL Server. See [Configuration](xref:fundamentals/configuration) for more information.