From 2d7809081d3e66cf8d46e1656bf98d2afb92b096 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Fri, 25 Oct 2024 15:41:58 -0600 Subject: [PATCH 1/3] ROPC for models RP /1 --- aspnetcore/tutorials/razor-pages/model.md | 3 +++ aspnetcore/tutorials/razor-pages/model/includes/model3.md | 2 ++ aspnetcore/tutorials/razor-pages/model/includes/model5.md | 2 ++ aspnetcore/tutorials/razor-pages/model/includes/model6.md | 2 ++ aspnetcore/tutorials/razor-pages/model/includes/model7.md | 2 ++ 5 files changed, 11 insertions(+) diff --git a/aspnetcore/tutorials/razor-pages/model.md b/aspnetcore/tutorials/razor-pages/model.md index 07fce415ceb6..247d4b4184ae 100644 --- a/aspnetcore/tutorials/razor-pages/model.md +++ b/aspnetcore/tutorials/razor-pages/model.md @@ -132,6 +132,8 @@ For more information, see [dotnet aspnet-codegenerator](xref:fundamentals/tools/ --- +[!INCLUDE [managed-identities-test-non-production](~/core/includes/managed-identities-test-non-production.md)] + ### Files created and updated The scaffold process creates the following files: @@ -153,6 +155,7 @@ The scaffold process adds the following highlighted code to the `Program.cs` fil The `Program.cs` changes are explained later in this tutorial. + ## Create the initial database schema using EF's migration feature diff --git a/aspnetcore/tutorials/razor-pages/model/includes/model3.md b/aspnetcore/tutorials/razor-pages/model/includes/model3.md index 511f31e08e32..552eee2c9b87 100644 --- a/aspnetcore/tutorials/razor-pages/model/includes/model3.md +++ b/aspnetcore/tutorials/razor-pages/model/includes/model3.md @@ -8,6 +8,8 @@ The model classes are known as POCO classes (from "plain-old CLR objects") becau [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie30) ([how to download](xref:index#how-to-download-a-sample)). +[!INCLUDE [managed-identities-test-non-production](~/core/includes/managed-identities-test-non-production.md)] + ## Add a data model # [Visual Studio](#tab/visual-studio) diff --git a/aspnetcore/tutorials/razor-pages/model/includes/model5.md b/aspnetcore/tutorials/razor-pages/model/includes/model5.md index c8c42e482856..4878ee7609b3 100644 --- a/aspnetcore/tutorials/razor-pages/model/includes/model5.md +++ b/aspnetcore/tutorials/razor-pages/model/includes/model5.md @@ -159,6 +159,8 @@ The `appsettings.json` file is updated with the connection string used to connec --- +[!INCLUDE [managed-identities-test-non-production](~/core/includes/managed-identities-test-non-production.md)] + ### Files created and updated The scaffold process creates the following files: diff --git a/aspnetcore/tutorials/razor-pages/model/includes/model6.md b/aspnetcore/tutorials/razor-pages/model/includes/model6.md index 6a6cdef944b0..b9f54b065aa8 100644 --- a/aspnetcore/tutorials/razor-pages/model/includes/model6.md +++ b/aspnetcore/tutorials/razor-pages/model/includes/model6.md @@ -169,6 +169,8 @@ The `appsettings.json` file is updated with the connection string used to connec --- +[!INCLUDE [managed-identities-test-non-production](~/core/includes/managed-identities-test-non-production.md)] + ### Files created and updated The scaffold process creates the following files: diff --git a/aspnetcore/tutorials/razor-pages/model/includes/model7.md b/aspnetcore/tutorials/razor-pages/model/includes/model7.md index 9af5af4c698d..c5580ef6f9ed 100644 --- a/aspnetcore/tutorials/razor-pages/model/includes/model7.md +++ b/aspnetcore/tutorials/razor-pages/model/includes/model7.md @@ -202,6 +202,8 @@ In each of the files, append `= default!;` to the `Movie` declaration. For examp Fixed in GA per https://github.com/dotnet/Scaffolding/issues/1594#issuecomment-1292422389 --> +[!INCLUDE [managed-identities-test-non-production](~/core/includes/managed-identities-test-non-production.md)] + ### Files created and updated The scaffold process creates the following files: From cf3d99d67d96753b2131f39df9cd681d31ddb4a4 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Fri, 25 Oct 2024 15:43:33 -0600 Subject: [PATCH 2/3] ROPC for models RP /1 --- aspnetcore/tutorials/razor-pages/model/includes/model8.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aspnetcore/tutorials/razor-pages/model/includes/model8.md b/aspnetcore/tutorials/razor-pages/model/includes/model8.md index f8ae9e5ed19a..797db8f0e61a 100644 --- a/aspnetcore/tutorials/razor-pages/model/includes/model8.md +++ b/aspnetcore/tutorials/razor-pages/model/includes/model8.md @@ -186,6 +186,8 @@ The `appsettings.json` file is updated with the connection string used to connec --- +[!INCLUDE [managed-identities-test-non-production](~/core/includes/managed-identities-test-non-production.md)] + ### Files created and updated The scaffold process creates the following files: From 362bfb1d31cbc1f0d405b51bd0883edc0b2aac58 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Fri, 25 Oct 2024 16:16:04 -0600 Subject: [PATCH 3/3] ROPC for models RP /1 --- aspnetcore/tutorials/razor-pages/model.md | 2 +- aspnetcore/tutorials/razor-pages/model/includes/model3.md | 2 +- aspnetcore/tutorials/razor-pages/model/includes/model5.md | 2 +- aspnetcore/tutorials/razor-pages/model/includes/model6.md | 2 +- aspnetcore/tutorials/razor-pages/model/includes/model7.md | 2 +- aspnetcore/tutorials/razor-pages/model/includes/model8.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/aspnetcore/tutorials/razor-pages/model.md b/aspnetcore/tutorials/razor-pages/model.md index 247d4b4184ae..8d632cd3aabd 100644 --- a/aspnetcore/tutorials/razor-pages/model.md +++ b/aspnetcore/tutorials/razor-pages/model.md @@ -132,7 +132,7 @@ For more information, see [dotnet aspnet-codegenerator](xref:fundamentals/tools/ --- -[!INCLUDE [managed-identities-test-non-production](~/core/includes/managed-identities-test-non-production.md)] +[!INCLUDE [managed-identities-test-non-production](~/includes/managed-identities-test-non-production.md)] ### Files created and updated diff --git a/aspnetcore/tutorials/razor-pages/model/includes/model3.md b/aspnetcore/tutorials/razor-pages/model/includes/model3.md index 552eee2c9b87..cebe85fcaa8f 100644 --- a/aspnetcore/tutorials/razor-pages/model/includes/model3.md +++ b/aspnetcore/tutorials/razor-pages/model/includes/model3.md @@ -8,7 +8,7 @@ The model classes are known as POCO classes (from "plain-old CLR objects") becau [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie30) ([how to download](xref:index#how-to-download-a-sample)). -[!INCLUDE [managed-identities-test-non-production](~/core/includes/managed-identities-test-non-production.md)] +[!INCLUDE [managed-identities-test-non-production](~/includes/managed-identities-test-non-production.md)] ## Add a data model diff --git a/aspnetcore/tutorials/razor-pages/model/includes/model5.md b/aspnetcore/tutorials/razor-pages/model/includes/model5.md index 4878ee7609b3..6fa369811d00 100644 --- a/aspnetcore/tutorials/razor-pages/model/includes/model5.md +++ b/aspnetcore/tutorials/razor-pages/model/includes/model5.md @@ -159,7 +159,7 @@ The `appsettings.json` file is updated with the connection string used to connec --- -[!INCLUDE [managed-identities-test-non-production](~/core/includes/managed-identities-test-non-production.md)] +[!INCLUDE [managed-identities-test-non-production](~/includes/managed-identities-test-non-production.md)] ### Files created and updated diff --git a/aspnetcore/tutorials/razor-pages/model/includes/model6.md b/aspnetcore/tutorials/razor-pages/model/includes/model6.md index b9f54b065aa8..ba50ed306c3f 100644 --- a/aspnetcore/tutorials/razor-pages/model/includes/model6.md +++ b/aspnetcore/tutorials/razor-pages/model/includes/model6.md @@ -169,7 +169,7 @@ The `appsettings.json` file is updated with the connection string used to connec --- -[!INCLUDE [managed-identities-test-non-production](~/core/includes/managed-identities-test-non-production.md)] +[!INCLUDE [managed-identities-test-non-production](~/includes/managed-identities-test-non-production.md)] ### Files created and updated diff --git a/aspnetcore/tutorials/razor-pages/model/includes/model7.md b/aspnetcore/tutorials/razor-pages/model/includes/model7.md index c5580ef6f9ed..22a282c00fe0 100644 --- a/aspnetcore/tutorials/razor-pages/model/includes/model7.md +++ b/aspnetcore/tutorials/razor-pages/model/includes/model7.md @@ -202,7 +202,7 @@ In each of the files, append `= default!;` to the `Movie` declaration. For examp Fixed in GA per https://github.com/dotnet/Scaffolding/issues/1594#issuecomment-1292422389 --> -[!INCLUDE [managed-identities-test-non-production](~/core/includes/managed-identities-test-non-production.md)] +[!INCLUDE [managed-identities-test-non-production](~/includes/managed-identities-test-non-production.md)] ### Files created and updated diff --git a/aspnetcore/tutorials/razor-pages/model/includes/model8.md b/aspnetcore/tutorials/razor-pages/model/includes/model8.md index 797db8f0e61a..c9a00a3f4520 100644 --- a/aspnetcore/tutorials/razor-pages/model/includes/model8.md +++ b/aspnetcore/tutorials/razor-pages/model/includes/model8.md @@ -186,7 +186,7 @@ The `appsettings.json` file is updated with the connection string used to connec --- -[!INCLUDE [managed-identities-test-non-production](~/core/includes/managed-identities-test-non-production.md)] +[!INCLUDE [managed-identities-test-non-production](~/includes/managed-identities-test-non-production.md)] ### Files created and updated