Skip to content

Commit d1ad9a3

Browse files
Copilotwadepickett
andcommitted
Add Prerequisite section linking to database setup tutorial
Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
1 parent 41604b7 commit d1ad9a3

5 files changed

Lines changed: 24 additions & 3 deletions

File tree

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
---
2-
title: Part 5, work with a database in an ASP.NET Core MVC app
2+
ai-usage: ai-assisted
33
author: wadepickett
44
description: Part 5 of tutorial series on ASP.NET Core MVC.
5+
monikerRange: '>= aspnetcore-3.1'
56
ms.author: wpickett
6-
ms.date: 03/02/2025
77
ms.custom: sfi-ropc-nochange
8-
monikerRange: '>= aspnetcore-3.1'
8+
ms.date: 12/01/2025
9+
title: Part 5, work with a database in an ASP.NET Core MVC app
910
uid: tutorials/first-mvc-app/working-with-sql
1011
---
1112

@@ -17,6 +18,10 @@ By [Rick Anderson](https://twitter.com/RickAndMSFT) and [Jon P Smith](https://tw
1718

1819
:::moniker range=">= aspnetcore-9.0"
1920

21+
## Prerequisite
22+
23+
This tutorial uses a database you set up in the previous step: <xref:tutorials/first-mvc-app/adding-model>.
24+
2025
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:
2126

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

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
:::moniker range=">= aspnetcore-3.1 < aspnetcore-6.0"
22

3+
## Prerequisite
4+
5+
This tutorial uses a database you set up in the previous step: <xref:tutorials/first-mvc-app/adding-model>.
6+
37
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:
48

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

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
:::moniker range="= aspnetcore-6.0"
22

3+
## Prerequisite
4+
5+
This tutorial uses a database you set up in the previous step: <xref:tutorials/first-mvc-app/adding-model>.
6+
37
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:
48

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

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
:::moniker range="= aspnetcore-7.0"
22

3+
## Prerequisite
4+
5+
This tutorial uses a database you set up in the previous step: <xref:tutorials/first-mvc-app/adding-model>.
6+
37
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:
48

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

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
:::moniker range="= aspnetcore-8.0"
22

3+
## Prerequisite
4+
5+
This tutorial uses a database you set up in the previous step: <xref:tutorials/first-mvc-app/adding-model>.
6+
37
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:
48

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

0 commit comments

Comments
 (0)