From d81077583575b2a8254992661174dbe8f9f60f3c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Feb 2026 23:00:50 +0000 Subject: [PATCH 01/11] Initial plan From b9698de90644c17bbd186163a986f978598184d3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Feb 2026 23:10:30 +0000 Subject: [PATCH 02/11] Add Apply migrations section to MVC validation tutorial for all supported versions Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com> --- .../tutorials/first-mvc-app/validation.md | 36 ++++++++++++++++++- .../validation/includes/validation6.md | 33 +++++++++++++++++ .../validation/includes/validation7.md | 33 +++++++++++++++++ .../validation/includes/validation8.md | 33 +++++++++++++++++ .../validation/includes/validation9.md | 33 +++++++++++++++++ 5 files changed, 167 insertions(+), 1 deletion(-) diff --git a/aspnetcore/tutorials/first-mvc-app/validation.md b/aspnetcore/tutorials/first-mvc-app/validation.md index bc1f4cca350c..0815875faa0f 100644 --- a/aspnetcore/tutorials/first-mvc-app/validation.md +++ b/aspnetcore/tutorials/first-mvc-app/validation.md @@ -1,10 +1,11 @@ --- title: Part 9, add validation to an ASP.NET Core MVC app +ai-usage: ai-assisted author: wadepickett description: Part 9 of tutorial series on ASP.NET Core MVC. monikerRange: '>= aspnetcore-3.1' ms.author: wpickett -ms.date: 01/22/2026 +ms.date: 02/27/2026 uid: tutorials/first-mvc-app/validation --- @@ -135,6 +136,39 @@ You can use the `DisplayFormat` attribute by itself, but it's generally a good i * The `DataType` attribute can enable MVC to choose the right field template to render the data (the `DisplayFormat` if used by itself uses the string template). +## Apply migrations + +Some validation attributes affect the database schema. For example, `[Required]` makes a column `NOT NULL` and `[StringLength(60)]` limits the column type to `nvarchar(60)`. Run a migration to keep the database schema consistent with the model. + +# [Visual Studio](#tab/visual-studio) + +From the **Tools** menu, select **NuGet Package Manager > Package Manager Console**. + +In the PMC, enter the following commands: + +```powershell +Add-Migration New_DataAnnotations +Update-Database +``` + +# [Visual Studio Code](#tab/visual-studio-code) + +[!INCLUDE[](~/includes/RP-mvc-shared/sqlite-warn.md)] + +Delete the Migrations folder and the database file, and then run the following .NET CLI commands: + +```dotnetcli +dotnet ef migrations add InitialCreate +``` + +```dotnetcli +dotnet ef database update +``` + +For more information, see [Resetting all migrations](/ef/core/managing-schemas/migrations/managing?tabs=dotnet-core-cli#resetting-all-migrations). + +--- + ## Additional resources * [Working with Forms](xref:mvc/views/working-with-forms) diff --git a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation6.md b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation6.md index 28d9f9eb1741..ac04725836a4 100644 --- a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation6.md +++ b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation6.md @@ -104,6 +104,39 @@ The following code shows combining attributes on one line: In the next part of the series, we review the app and make some improvements to the automatically generated `Details` and `Delete` methods. +## Apply migrations + +Some validation attributes affect the database schema. For example, `[Required]` makes a column `NOT NULL` and `[StringLength(60)]` limits the column type to `nvarchar(60)`. Run a migration to keep the database schema consistent with the model. + +# [Visual Studio](#tab/visual-studio) + +From the **Tools** menu, select **NuGet Package Manager > Package Manager Console**. + +In the PMC, enter the following commands: + +```powershell +Add-Migration New_DataAnnotations +Update-Database +``` + +# [Visual Studio Code](#tab/visual-studio-code) + +[!INCLUDE[](~/includes/RP-mvc-shared/sqlite-warn.md)] + +Delete the Migrations folder and the database file, and then run the following .NET CLI commands: + +```dotnetcli +dotnet ef migrations add InitialCreate +``` + +```dotnetcli +dotnet ef database update +``` + +For more information, see [Resetting all migrations](/ef/core/managing-schemas/migrations/managing?tabs=dotnet-core-cli#resetting-all-migrations). + +--- + ## Additional resources * [Working with Forms](xref:mvc/views/working-with-forms) diff --git a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation7.md b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation7.md index b583d7355502..395ee7252ba9 100644 --- a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation7.md +++ b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation7.md @@ -104,6 +104,39 @@ The following code shows combining attributes on one line: In the next part of the series, we review the app and make some improvements to the automatically generated `Details` and `Delete` methods. +## Apply migrations + +Some validation attributes affect the database schema. For example, `[Required]` makes a column `NOT NULL` and `[StringLength(60)]` limits the column type to `nvarchar(60)`. Run a migration to keep the database schema consistent with the model. + +# [Visual Studio](#tab/visual-studio) + +From the **Tools** menu, select **NuGet Package Manager > Package Manager Console**. + +In the PMC, enter the following commands: + +```powershell +Add-Migration New_DataAnnotations +Update-Database +``` + +# [Visual Studio Code](#tab/visual-studio-code) + +[!INCLUDE[](~/includes/RP-mvc-shared/sqlite-warn.md)] + +Delete the Migrations folder and the database file, and then run the following .NET CLI commands: + +```dotnetcli +dotnet ef migrations add InitialCreate +``` + +```dotnetcli +dotnet ef database update +``` + +For more information, see [Resetting all migrations](/ef/core/managing-schemas/migrations/managing?tabs=dotnet-core-cli#resetting-all-migrations). + +--- + ## Additional resources * [Working with Forms](xref:mvc/views/working-with-forms) diff --git a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation8.md b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation8.md index 5841b9f2da55..f05d6de3e121 100644 --- a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation8.md +++ b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation8.md @@ -109,6 +109,39 @@ The following code shows combining attributes on one line: In the next part of the series, we review the app and make some improvements to the automatically generated `Details` and `Delete` methods. +## Apply migrations + +Some validation attributes affect the database schema. For example, `[Required]` makes a column `NOT NULL` and `[StringLength(60)]` limits the column type to `nvarchar(60)`. Run a migration to keep the database schema consistent with the model. + +# [Visual Studio](#tab/visual-studio) + +From the **Tools** menu, select **NuGet Package Manager > Package Manager Console**. + +In the PMC, enter the following commands: + +```powershell +Add-Migration New_DataAnnotations +Update-Database +``` + +# [Visual Studio Code](#tab/visual-studio-code) + +[!INCLUDE[](~/includes/RP-mvc-shared/sqlite-warn.md)] + +Delete the Migrations folder and the database file, and then run the following .NET CLI commands: + +```dotnetcli +dotnet ef migrations add InitialCreate +``` + +```dotnetcli +dotnet ef database update +``` + +For more information, see [Resetting all migrations](/ef/core/managing-schemas/migrations/managing?tabs=dotnet-core-cli#resetting-all-migrations). + +--- + ## Additional resources * [Working with Forms](xref:mvc/views/working-with-forms) diff --git a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation9.md b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation9.md index 7f5ba7889230..3459fb4ea455 100644 --- a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation9.md +++ b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation9.md @@ -109,6 +109,39 @@ The following code shows combining attributes on one line: In the next part of the series, we review the app and make some improvements to the automatically generated `Details` and `Delete` methods. +## Apply migrations + +Some validation attributes affect the database schema. For example, `[Required]` makes a column `NOT NULL` and `[StringLength(60)]` limits the column type to `nvarchar(60)`. Run a migration to keep the database schema consistent with the model. + +# [Visual Studio](#tab/visual-studio) + +From the **Tools** menu, select **NuGet Package Manager > Package Manager Console**. + +In the PMC, enter the following commands: + +```powershell +Add-Migration New_DataAnnotations +Update-Database +``` + +# [Visual Studio Code](#tab/visual-studio-code) + +[!INCLUDE[](~/includes/RP-mvc-shared/sqlite-warn.md)] + +Delete the Migrations folder and the database file, and then run the following .NET CLI commands: + +```dotnetcli +dotnet ef migrations add InitialCreate +``` + +```dotnetcli +dotnet ef database update +``` + +For more information, see [Resetting all migrations](/ef/core/managing-schemas/migrations/managing?tabs=dotnet-core-cli#resetting-all-migrations). + +--- + ## Additional resources * [Working with Forms](xref:mvc/views/working-with-forms) From f45e073a4a769b3ba3dbc056e04cf43bc36d25cd Mon Sep 17 00:00:00 2001 From: Wade Pickett Date: Mon, 23 Mar 2026 09:53:30 -0700 Subject: [PATCH 03/11] Apply suggestion from @wadepickett --- aspnetcore/tutorials/first-mvc-app/validation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/tutorials/first-mvc-app/validation.md b/aspnetcore/tutorials/first-mvc-app/validation.md index 0815875faa0f..27a5709bf79a 100644 --- a/aspnetcore/tutorials/first-mvc-app/validation.md +++ b/aspnetcore/tutorials/first-mvc-app/validation.md @@ -5,7 +5,7 @@ author: wadepickett description: Part 9 of tutorial series on ASP.NET Core MVC. monikerRange: '>= aspnetcore-3.1' ms.author: wpickett -ms.date: 02/27/2026 +ms.date: 03/23/2026 uid: tutorials/first-mvc-app/validation --- From 925d8b36c15253cf229d7b84faca23432302b58e Mon Sep 17 00:00:00 2001 From: Wade Pickett Date: Mon, 23 Mar 2026 10:17:37 -0700 Subject: [PATCH 04/11] Reinsert review note for Details and Delete methods --- .../first-mvc-app/validation/includes/validation6.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation6.md b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation6.md index ac04725836a4..f36a8b826c05 100644 --- a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation6.md +++ b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation6.md @@ -102,8 +102,6 @@ The following code shows combining attributes on one line: [!code-csharp[](~/tutorials/first-mvc-app/start-mvc/sample/MvcMovie60/Models/Movie.cs?name=AttrOneLine)] -In the next part of the series, we review the app and make some improvements to the automatically generated `Details` and `Delete` methods. - ## Apply migrations Some validation attributes affect the database schema. For example, `[Required]` makes a column `NOT NULL` and `[StringLength(60)]` limits the column type to `nvarchar(60)`. Run a migration to keep the database schema consistent with the model. @@ -137,6 +135,8 @@ For more information, see [Resetting all migrations](/ef/core/managing-schemas/m --- +In the next part of the series, we review the app and make some improvements to the automatically generated `Details` and `Delete` methods. + ## Additional resources * [Working with Forms](xref:mvc/views/working-with-forms) From 1cac10560df2d8413e8058c59bf0d52f4059df99 Mon Sep 17 00:00:00 2001 From: Wade Pickett Date: Mon, 23 Mar 2026 10:18:50 -0700 Subject: [PATCH 05/11] Update validation7.md with review note Added a note about reviewing the app and improving methods. --- .../first-mvc-app/validation/includes/validation7.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation7.md b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation7.md index 395ee7252ba9..26fd224f8650 100644 --- a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation7.md +++ b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation7.md @@ -102,8 +102,6 @@ The following code shows combining attributes on one line: [!code-csharp[](~/tutorials/first-mvc-app/start-mvc/sample/MvcMovie70/Models/Movie.cs?name=snippet_AttrOneLine)] -In the next part of the series, we review the app and make some improvements to the automatically generated `Details` and `Delete` methods. - ## Apply migrations Some validation attributes affect the database schema. For example, `[Required]` makes a column `NOT NULL` and `[StringLength(60)]` limits the column type to `nvarchar(60)`. Run a migration to keep the database schema consistent with the model. @@ -134,9 +132,10 @@ dotnet ef database update ``` For more information, see [Resetting all migrations](/ef/core/managing-schemas/migrations/managing?tabs=dotnet-core-cli#resetting-all-migrations). - --- +In the next part of the series, we review the app and make some improvements to the automatically generated `Details` and `Delete` methods. + ## Additional resources * [Working with Forms](xref:mvc/views/working-with-forms) From faf23a0ff359cd64c57b2cabde4ffb911f7e7615 Mon Sep 17 00:00:00 2001 From: Wade Pickett Date: Mon, 23 Mar 2026 10:21:34 -0700 Subject: [PATCH 06/11] Reinsert review note for Details and Delete methods --- .../first-mvc-app/validation/includes/validation8.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation8.md b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation8.md index f05d6de3e121..3928dfa45ed8 100644 --- a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation8.md +++ b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation8.md @@ -107,8 +107,6 @@ The following code shows combining attributes on one line: [!code-csharp[](~/tutorials/first-mvc-app/start-mvc/sample/mvcmovie80/Models/Movie.cs?name=snippet_AttrOneLine)] -In the next part of the series, we review the app and make some improvements to the automatically generated `Details` and `Delete` methods. - ## Apply migrations Some validation attributes affect the database schema. For example, `[Required]` makes a column `NOT NULL` and `[StringLength(60)]` limits the column type to `nvarchar(60)`. Run a migration to keep the database schema consistent with the model. @@ -142,6 +140,8 @@ For more information, see [Resetting all migrations](/ef/core/managing-schemas/m --- +In the next part of the series, we review the app and make some improvements to the automatically generated `Details` and `Delete` methods. + ## Additional resources * [Working with Forms](xref:mvc/views/working-with-forms) @@ -153,4 +153,4 @@ For more information, see [Resetting all migrations](/ef/core/managing-schemas/m > [Previous](~/tutorials/first-mvc-app/new-field.md) > [Next](~/tutorials/first-mvc-app/details.md) -:::moniker-end \ No newline at end of file +:::moniker-end From ddb2236b9113e8b4de59d108b41d19a8ac754c09 Mon Sep 17 00:00:00 2001 From: Wade Pickett Date: Mon, 23 Mar 2026 10:26:29 -0700 Subject: [PATCH 07/11] Update validation9.md --- .../first-mvc-app/validation/includes/validation9.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation9.md b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation9.md index 3459fb4ea455..93da2245ebc6 100644 --- a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation9.md +++ b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation9.md @@ -107,8 +107,6 @@ The following code shows combining attributes on one line: [!code-csharp[](~/tutorials/first-mvc-app/start-mvc/sample/mvcmovie90/Models/Movie.cs?name=snippet_AttrOneLine)] -In the next part of the series, we review the app and make some improvements to the automatically generated `Details` and `Delete` methods. - ## Apply migrations Some validation attributes affect the database schema. For example, `[Required]` makes a column `NOT NULL` and `[StringLength(60)]` limits the column type to `nvarchar(60)`. Run a migration to keep the database schema consistent with the model. @@ -142,6 +140,8 @@ For more information, see [Resetting all migrations](/ef/core/managing-schemas/m --- +In the next part of the series, we review the app and make some improvements to the automatically generated `Details` and `Delete` methods. + ## Additional resources * [Working with Forms](xref:mvc/views/working-with-forms) From e6f631dea3fe58e40eedcd1771852978cfba9b75 Mon Sep 17 00:00:00 2001 From: Wade Pickett Date: Thu, 26 Mar 2026 09:37:45 -0700 Subject: [PATCH 08/11] Add link to Part 8 tutorial on EF Core migrations --- .../tutorials/first-mvc-app/validation/includes/validation6.md | 1 + 1 file changed, 1 insertion(+) diff --git a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation6.md b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation6.md index f36a8b826c05..81edaf2d9b3e 100644 --- a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation6.md +++ b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation6.md @@ -139,6 +139,7 @@ In the next part of the series, we review the app and make some improvements to ## Additional resources +* [Part 8, Add a new field (EF Core migrations)](xref:tutorials/first-mvc-app/new-field) * [Working with Forms](xref:mvc/views/working-with-forms) * [Globalization and localization](xref:fundamentals/localization) * [Introduction to Tag Helpers](xref:mvc/views/tag-helpers/intro) From 8b76440438eb1d5dbabe81aed1fc16eab8af9278 Mon Sep 17 00:00:00 2001 From: Wade Pickett Date: Thu, 26 Mar 2026 09:42:05 -0700 Subject: [PATCH 09/11] Apply suggestions from code review Add links to new field tutorial per tdykstra review Co-authored-by: Wade Pickett --- .../tutorials/first-mvc-app/validation/includes/validation8.md | 1 + .../tutorials/first-mvc-app/validation/includes/validation9.md | 1 + 2 files changed, 2 insertions(+) diff --git a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation8.md b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation8.md index 3928dfa45ed8..c6a231835723 100644 --- a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation8.md +++ b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation8.md @@ -144,6 +144,7 @@ In the next part of the series, we review the app and make some improvements to ## Additional resources +* [Part 8, Add a new field (EF Core migrations)](xref:tutorials/first-mvc-app/new-field) * [Working with Forms](xref:mvc/views/working-with-forms) * [Globalization and localization](xref:fundamentals/localization) * [Introduction to Tag Helpers](xref:mvc/views/tag-helpers/intro) diff --git a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation9.md b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation9.md index 93da2245ebc6..d445bc2ed6cb 100644 --- a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation9.md +++ b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation9.md @@ -144,6 +144,7 @@ In the next part of the series, we review the app and make some improvements to ## Additional resources +* [Part 8, Add a new field (EF Core migrations)](xref:tutorials/first-mvc-app/new-field) * [Working with Forms](xref:mvc/views/working-with-forms) * [Globalization and localization](xref:fundamentals/localization) * [Introduction to Tag Helpers](xref:mvc/views/tag-helpers/intro) From f72db6845a907ff58e7964230ef3457b0ad68992 Mon Sep 17 00:00:00 2001 From: Wade Pickett Date: Thu, 26 Mar 2026 09:42:44 -0700 Subject: [PATCH 10/11] Apply suggestion from @wadepickett --- .../tutorials/first-mvc-app/validation/includes/validation7.md | 1 + 1 file changed, 1 insertion(+) diff --git a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation7.md b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation7.md index 26fd224f8650..f4c4ba84feb8 100644 --- a/aspnetcore/tutorials/first-mvc-app/validation/includes/validation7.md +++ b/aspnetcore/tutorials/first-mvc-app/validation/includes/validation7.md @@ -138,6 +138,7 @@ In the next part of the series, we review the app and make some improvements to ## Additional resources +* [Part 8, Add a new field (EF Core migrations)](xref:tutorials/first-mvc-app/new-field) * [Working with Forms](xref:mvc/views/working-with-forms) * [Globalization and localization](xref:fundamentals/localization) * [Introduction to Tag Helpers](xref:mvc/views/tag-helpers/intro) From bf186d1e58b7b93a8434b1bf1d7f09e8c4fa558a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Mar 2026 17:00:17 +0000 Subject: [PATCH 11/11] Add Part 8 link to validation.md Additional resources; update EF Core migrations links in new-field tutorials Agent-Logs-Url: https://github.com/dotnet/AspNetCore.Docs/sessions/6b4f3ff0-45af-46b6-aafa-bde7f5bf725e Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com> --- aspnetcore/tutorials/first-mvc-app/new-field.md | 4 ++-- .../tutorials/first-mvc-app/new-field/includes/new-field6.md | 2 +- .../tutorials/first-mvc-app/new-field/includes/new-field7.md | 2 +- .../tutorials/first-mvc-app/new-field/includes/new-field8.md | 2 +- aspnetcore/tutorials/first-mvc-app/validation.md | 3 ++- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/aspnetcore/tutorials/first-mvc-app/new-field.md b/aspnetcore/tutorials/first-mvc-app/new-field.md index f306bce6c476..c784c41be73b 100644 --- a/aspnetcore/tutorials/first-mvc-app/new-field.md +++ b/aspnetcore/tutorials/first-mvc-app/new-field.md @@ -4,7 +4,7 @@ author: wadepickett description: Part 8 of tutorial series on ASP.NET Core MVC. monikerRange: '>= aspnetcore-3.1' ms.author: wpickett -ms.date: 01/22/2026 +ms.date: 03/26/2026 uid: tutorials/first-mvc-app/new-field --- # Part 8, add a new field to an ASP.NET Core MVC app @@ -13,7 +13,7 @@ uid: tutorials/first-mvc-app/new-field :::moniker range=">= aspnetcore-10.0" -In this section [Entity Framework](/ef/core/get-started/aspnetcore/new-db) Migrations is used to: +In this section [Entity Framework Core migrations](/ef/core/managing-schemas/migrations/) is used to: * Add a new field to the model. * Migrate the new field to the database. diff --git a/aspnetcore/tutorials/first-mvc-app/new-field/includes/new-field6.md b/aspnetcore/tutorials/first-mvc-app/new-field/includes/new-field6.md index be197ea21114..f17c070d86c8 100644 --- a/aspnetcore/tutorials/first-mvc-app/new-field/includes/new-field6.md +++ b/aspnetcore/tutorials/first-mvc-app/new-field/includes/new-field6.md @@ -1,6 +1,6 @@ :::moniker range="= aspnetcore-6.0" -In this section [Entity Framework](/ef/core/get-started/aspnetcore/new-db) Code First Migrations is used to: +In this section [Entity Framework Core migrations](/ef/core/managing-schemas/migrations/) is used to: * Add a new field to the model. * Migrate the new field to the database. diff --git a/aspnetcore/tutorials/first-mvc-app/new-field/includes/new-field7.md b/aspnetcore/tutorials/first-mvc-app/new-field/includes/new-field7.md index 66346a16add7..c3f5e95c1609 100644 --- a/aspnetcore/tutorials/first-mvc-app/new-field/includes/new-field7.md +++ b/aspnetcore/tutorials/first-mvc-app/new-field/includes/new-field7.md @@ -1,6 +1,6 @@ :::moniker range="= aspnetcore-7.0" -In this section [Entity Framework](/ef/core/get-started/aspnetcore/new-db) Code First Migrations is used to: +In this section [Entity Framework Core migrations](/ef/core/managing-schemas/migrations/) is used to: * Add a new field to the model. * Migrate the new field to the database. diff --git a/aspnetcore/tutorials/first-mvc-app/new-field/includes/new-field8.md b/aspnetcore/tutorials/first-mvc-app/new-field/includes/new-field8.md index 9cd661f91e61..3be0ea3115cc 100644 --- a/aspnetcore/tutorials/first-mvc-app/new-field/includes/new-field8.md +++ b/aspnetcore/tutorials/first-mvc-app/new-field/includes/new-field8.md @@ -1,6 +1,6 @@ :::moniker range="= aspnetcore-8.0" -In this section [Entity Framework](/ef/core/get-started/aspnetcore/new-db) Code First Migrations is used to: +In this section [Entity Framework Core migrations](/ef/core/managing-schemas/migrations/) is used to: * Add a new field to the model. * Migrate the new field to the database. diff --git a/aspnetcore/tutorials/first-mvc-app/validation.md b/aspnetcore/tutorials/first-mvc-app/validation.md index 27a5709bf79a..b789e8513a3a 100644 --- a/aspnetcore/tutorials/first-mvc-app/validation.md +++ b/aspnetcore/tutorials/first-mvc-app/validation.md @@ -5,7 +5,7 @@ author: wadepickett description: Part 9 of tutorial series on ASP.NET Core MVC. monikerRange: '>= aspnetcore-3.1' ms.author: wpickett -ms.date: 03/23/2026 +ms.date: 03/26/2026 uid: tutorials/first-mvc-app/validation --- @@ -171,6 +171,7 @@ For more information, see [Resetting all migrations](/ef/core/managing-schemas/m ## Additional resources +* [Part 8, Add a new field (EF Core migrations)](xref:tutorials/first-mvc-app/new-field) * [Working with Forms](xref:mvc/views/working-with-forms) * [Globalization and localization](xref:fundamentals/localization) * [Introduction to Tag Helpers](xref:mvc/views/tag-helpers/intro)