From 4911282c3935c59d945e65f39b9e072ba4d46583 Mon Sep 17 00:00:00 2001 From: Andre Kraemer Date: Mon, 23 Sep 2024 02:04:11 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Added=20missing=20`add`=20in=20the=20migrat?= =?UTF-8?q?ion=20command=20of=20Blazor=20Movie=20Tutorial=E2=80=A6=20(#336?= =?UTF-8?q?78)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aspnetcore/blazor/tutorials/movie-database-app/part-7.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/blazor/tutorials/movie-database-app/part-7.md b/aspnetcore/blazor/tutorials/movie-database-app/part-7.md index 793a655ef799..02d313dd032a 100644 --- a/aspnetcore/blazor/tutorials/movie-database-app/part-7.md +++ b/aspnetcore/blazor/tutorials/movie-database-app/part-7.md @@ -199,7 +199,7 @@ Modify the one movie that isn't rated *R*: In the **Terminal** (**Terminal** menu > **New Terminal**), execute the following command to add a migration. The migration name (`AddRatingField`) is an arbitrary description for the migration: ```dotnetcli -dotnet ef migrations AddRatingField +dotnet ef migrations add AddRatingField ``` The `dotnet-ef migrations` command: @@ -247,7 +247,7 @@ Modify the one movie that isn't rated *R*: In a command shell opened to the project's root folder, execute the following command to add a migration. The migration name (`AddRatingField`) is an arbitrary description for the migration: ```dotnetcli -dotnet ef migrations AddRatingField +dotnet ef migrations add AddRatingField ``` The `dotnet-ef migrations` command: From e044b737a6851caebb8846a6f1c6dd20b9c3b85f Mon Sep 17 00:00:00 2001 From: Robert Haken Date: Mon, 23 Sep 2024 02:04:30 +0200 Subject: [PATCH 2/2] [Blazor] Components - loop samples - intro text removal (#33675) --- aspnetcore/blazor/components/index.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/aspnetcore/blazor/components/index.md b/aspnetcore/blazor/components/index.md index 68ec335a0988..b1dec37e7837 100644 --- a/aspnetcore/blazor/components/index.md +++ b/aspnetcore/blazor/components/index.md @@ -1270,8 +1270,6 @@ Consider the following `RenderFragmentChild2` component that has both a componen When rendering the `RenderFragmentChild2` component in a parent component, use a local index variable (`ct` in the following example) instead of the loop variable (`c`) when assigning the component parameter value and providing the child component's content: ```razor -

Three children with a for loop and an index variable

- @for (int c = 1; c < 4; c++) { var ct = c; @@ -1285,8 +1283,6 @@ When rendering the `RenderFragmentChild2` component in a parent component, use a Alternatively, use a [`foreach`](/dotnet/csharp/language-reference/keywords/foreach-in) loop with instead of a [`for`](/dotnet/csharp/language-reference/keywords/for) loop: ```razor -

Alternative approach without an index variable

- @foreach (var c in Enumerable.Range(1, 3)) {