Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge to Live #33679

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions aspnetcore/blazor/components/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<h1>Three children with a <code>for</code> loop and an index variable</h1>

@for (int c = 1; c < 4; c++)
{
var ct = c;
Expand All @@ -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 <xref:System.Linq.Enumerable.Range%2A?displayProperty=nameWithType> instead of a [`for`](/dotnet/csharp/language-reference/keywords/for) loop:

```razor
<h1>Alternative approach without an index variable</h1>

@foreach (var c in Enumerable.Range(1, 3))
{
<RenderFragmentChild2 Id="@($"Child{c}")">
Expand Down
4 changes: 2 additions & 2 deletions aspnetcore/blazor/tutorials/movie-database-app/part-7.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
Loading