Skip to content

Commit f121ad7

Browse files
authored
Enhance SQL tutorial with introduction and objectives
Added introduction section to SQL tutorial for ASP.NET Core.
1 parent 4bf5a39 commit f121ad7

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
:::moniker range="= aspnetcore-8.0"
22

3+
## Introduction
4+
5+
This part of the tutorial series focuses on working with a SQL database in your ASP.NET Core MVC application.
6+
7+
You’ll learn how to:
8+
9+
- Connect your application to a SQL database
10+
- Map models to database records
11+
- Configure the Entity Framework Core context
12+
- Perform CRUD (Create, Read, Update, Delete) operations
13+
14+
By the end of this guide, you’ll understand the basics of working with databases in ASP.NET Core using Entity Framework Core.
15+
316
## Prerequisite
417

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

20+
## Working with the database context
21+
722
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:
823

924
# [Visual Studio](#tab/visual-studio)
@@ -113,4 +128,4 @@ The app shows the seeded data.
113128
> [Previous: Adding a model](~/tutorials/first-mvc-app/adding-model.md)
114129
> [Next: Adding controller methods and views](~/tutorials/first-mvc-app/controller-methods-views.md)
115130
116-
:::moniker-end
131+
:::moniker-end

0 commit comments

Comments
 (0)