You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By the end of this guide, you’ll understand the basics of working with databases in ASP.NET Core using Entity Framework Core.
15
+
3
16
## Prerequisite
4
17
5
18
This tutorial uses a database you set up in the previous step: <xref:tutorials/first-mvc-app/adding-model>.
6
19
20
+
## Working with the database context
21
+
7
22
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:
8
23
9
24
# [Visual Studio](#tab/visual-studio)
@@ -113,4 +128,4 @@ The app shows the seeded data.
113
128
> [Previous: Adding a model](~/tutorials/first-mvc-app/adding-model.md)
114
129
> [Next: Adding controller methods and views](~/tutorials/first-mvc-app/controller-methods-views.md)
0 commit comments