Skip to content

Commit 4bf5a39

Browse files
authored
Add database context section to SQL tutorial
Added section on working with the database context.
1 parent d645cd3 commit 4bf5a39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aspnetcore/tutorials/first-mvc-app/working-with-sql/includes/working-with-sql7.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ By the end of this guide, you’ll understand the basics of working with databas
1717

1818
This tutorial uses a database you set up in the previous step: <xref:tutorials/first-mvc-app/adding-model>.
1919

20+
## Working with the database context
21+
2022
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 `Program.cs` file:
2123

2224
# [Visual Studio](#tab/visual-studio)

0 commit comments

Comments
 (0)