Update working-with-sql.md (#2414)

pull/2420/head
Rick Anderson 2016-12-16 20:54:17 -10:00 committed by GitHub
parent 050ddd6cb7
commit 65063d2898
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@ uid: tutorials/first-mvc-app/working-with-sql
---
# Working with SQL Server LocalDB
By [Rick Anderson](https://twitter.com/RickAndMSFT)
The `ApplicationDbContext` class handles the task of connecting to the database and mapping `Movie` objects to database records. The database context is registered with the [Dependency Injection](../../fundamentals/dependency-injection.md) container in the `ConfigureServices` method in the *Startup.cs* file:
[!code-csharp[Main](start-mvc/sample2/src/MvcMovie/Startup.cs?name=snippet_details)]