Skip to content

Commit e813eb3

Browse files
authored
Merge pull request #34152 from dotnet/main
2 parents 9e625bf + 23283d8 commit e813eb3

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

aspnetcore/blazor/components/virtualization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ The items provider receives an <xref:Microsoft.AspNetCore.Components.Web.Virtual
9797

9898
A <xref:Microsoft.AspNetCore.Components.Web.Virtualization.Virtualize%601> component can only accept **one item source** from its parameters, so don't attempt to simultaneously use an items provider and assign a collection to `Items`. If both are assigned, an <xref:System.InvalidOperationException> is thrown when the component's parameters are set at runtime.
9999

100-
The following example loads employees from an `EmployeeService` (not shown):
100+
The following example loads employees from an `EmployeeService` (not shown). The `totalEmployees` field would typically be assigned by calling a method on the same service (for example, `EmployeesService.GetEmployeesCountAsync`) elsewhere, such as during component initialization.
101101

102102
```csharp
103103
private async ValueTask<ItemsProviderResult<Employee>> LoadEmployees(

aspnetcore/blazor/tutorials/movie-database-app/part-2.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ dotnet add package Microsoft.EntityFrameworkCore.SqlServer
128128
dotnet add package Microsoft.EntityFrameworkCore.Tools
129129
dotnet add package Microsoft.AspNetCore.Components.QuickGrid
130130
dotnet add package Microsoft.AspNetCore.Components.QuickGrid.EntityFrameworkAdapter
131+
dotnet add package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
131132
```
132133

133134
> [!IMPORTANT]
@@ -138,11 +139,12 @@ dotnet add package Microsoft.AspNetCore.Components.QuickGrid.EntityFrameworkAdap
138139
139140
The preceding commands add:
140141

141-
* [Command-line interface (CLI) tools for EF Core](/ef/core/miscellaneous/cli/dotnet)
142-
* [`aspnet-codegenerator` scaffolding tool](xref:fundamentals/tools/dotnet-aspnet-codegenerator)
143-
* Design time tools for EF Core
144-
* The SQLite and SQL Server providers with the EF Core package as a dependency
145-
* [`Microsoft.VisualStudio.Web.CodeGeneration.Design`](https://www.nuget.org/packages/Microsoft.VisualStudio.Web.CodeGeneration.Design) for scaffolding
142+
* [Command-line interface (CLI) tools for EF Core](/ef/core/miscellaneous/cli/dotnet).
143+
* [`aspnet-codegenerator` scaffolding tool](xref:fundamentals/tools/dotnet-aspnet-codegenerator).
144+
* Design time tools for EF Core.
145+
* The SQLite and SQL Server providers with the EF Core package as a dependency.
146+
* [`Microsoft.VisualStudio.Web.CodeGeneration.Design`](https://www.nuget.org/packages/Microsoft.VisualStudio.Web.CodeGeneration.Design) for scaffolding.
147+
* [`Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore`](https://www.nuget.org/packages/Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore) to use the <xref:Microsoft.Extensions.DependencyInjection.DatabaseDeveloperPageExceptionFilterServiceExtensions.AddDatabaseDeveloperPageExceptionFilter%2A> extension method in the `Program` file, which captures database-related exceptions.
146148

147149
In the **Command Palette** (<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>), use the `.NET: Build` command to build the app.
148150

@@ -169,18 +171,20 @@ dotnet add package Microsoft.EntityFrameworkCore.SqlServer
169171
dotnet add package Microsoft.EntityFrameworkCore.Tools
170172
dotnet add package Microsoft.AspNetCore.Components.QuickGrid
171173
dotnet add package Microsoft.AspNetCore.Components.QuickGrid.EntityFrameworkAdapter
174+
dotnet add package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
172175
```
173176

174177
> [!IMPORTANT]
175178
> After the first eight commands execute, make sure that you press <kbd>Enter</kbd> on the keyboard to execute the last command.
176179
177180
The preceding commands add:
178181

179-
* [Command-line interface (CLI) tools for EF Core](/ef/core/miscellaneous/cli/dotnet)
180-
* [`aspnet-codegenerator` scaffolding tool](xref:fundamentals/tools/dotnet-aspnet-codegenerator)
181-
* Design time tools for EF Core
182-
* The SQLite and SQL Server providers with the EF Core package as a dependency
183-
* [`Microsoft.VisualStudio.Web.CodeGeneration.Design`](https://www.nuget.org/packages/Microsoft.VisualStudio.Web.CodeGeneration.Design) for scaffolding
182+
* [Command-line interface (CLI) tools for EF Core](/ef/core/miscellaneous/cli/dotnet).
183+
* [`aspnet-codegenerator` scaffolding tool](xref:fundamentals/tools/dotnet-aspnet-codegenerator).
184+
* Design time tools for EF Core.
185+
* The SQLite and SQL Server providers with the EF Core package as a dependency.
186+
* [`Microsoft.VisualStudio.Web.CodeGeneration.Design`](https://www.nuget.org/packages/Microsoft.VisualStudio.Web.CodeGeneration.Design) for scaffolding.
187+
* [`Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore`](https://www.nuget.org/packages/Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore) to use the <xref:Microsoft.Extensions.DependencyInjection.DatabaseDeveloperPageExceptionFilterServiceExtensions.AddDatabaseDeveloperPageExceptionFilter%2A> extension method in the `Program` file, which captures database-related exceptions.
184188

185189
In a command shell opened to the project's root folder, execute the [`dotnet build`](/dotnet/core/tools/dotnet-build) command:
186190

0 commit comments

Comments
 (0)