Skip to content

Commit 25b58bd

Browse files
authored
Enhance SQL tutorial with introduction and objectives
Added introduction section to SQL database tutorial.
1 parent ed1bd98 commit 25b58bd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
11
:::moniker range=">= aspnetcore-3.1 < aspnetcore-6.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+
22+
723
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 `ConfigureServices` method in the `Startup.cs` file:
824

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

0 commit comments

Comments
 (0)