Skip to content

Commit 44d3e4a

Browse files
authored
Enhance SQL tutorial with introduction and objectives
Added introduction section to SQL database tutorial.
1 parent f121ad7 commit 44d3e4a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,25 @@ By [Rick Anderson](https://twitter.com/RickAndMSFT) and [Jon P Smith](https://tw
1818

1919
:::moniker range=">= aspnetcore-9.0"
2020

21+
## Introduction
22+
23+
This part of the tutorial series focuses on working with a SQL database in your ASP.NET Core MVC application.
24+
25+
You’ll learn how to:
26+
27+
- Connect your application to a SQL database
28+
- Map models to database records
29+
- Configure the Entity Framework Core context
30+
- Perform CRUD (Create, Read, Update, Delete) operations
31+
32+
By the end of this guide, you’ll understand the basics of working with databases in ASP.NET Core using Entity Framework Core.
33+
2134
## Prerequisite
2235

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

38+
## Working with the database context
39+
2540
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:
2641

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

0 commit comments

Comments
 (0)