Skip to content

Commit b25aea1

Browse files
authored
Add scaffolding troubleshooting remark (#34810)
1 parent 88cefea commit b25aea1

File tree

1 file changed

+6
-0
lines changed
  • aspnetcore/blazor/tutorials/movie-database-app

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,12 @@ The scaffolding process creates the following component files and movie database
313313

314314
The component files in the `MoviePages` folder are described in greater detail in the next part of this tutorial. The database context is described later in this article.
315315

316+
:::zone pivot="vs"
317+
318+
If the `MoviePages` folder and assets aren't present after scaffolding, return to the [Scaffold the model](#scaffold-the-model) section and rescaffold the `Movie` model, making sure that you select the **Razor Components using Entity Framework (CRUD)** scaffolder under **Installed** > **Common** > **Blazor** > **Razor Component** in the **Add New Scaffold Item** dialog.
319+
320+
:::zone-end
321+
316322
ASP.NET Core is built with dependency injection, which is a software design pattern for achieving [Inversion of Control (IoC)](/dotnet/standard/modern-web-apps-azure-architecture/architectural-principles#dependency-inversion) between classes and their dependencies. Services, such as the EF Core database context, are registered with dependency injection during application startup. These services are injected into Razor components for use by the components.
317323

318324
The [`QuickGrid` component](xref:Microsoft.AspNetCore.Components.QuickGrid) is a Razor component for efficiently displaying data in tabular form. The scaffolder places a `QuickGrid` component in the `Index` component (`Components/Pages/Index.razor`) to display movie entities. Calling <xref:Microsoft.Extensions.DependencyInjection.EntityFrameworkAdapterServiceCollectionExtensions.AddQuickGridEntityFrameworkAdapter%2A> on the service collection adds an EF Core adapter for QuickGrid to recognize EF Core-supplied <xref:System.Linq.IQueryable%601> instances and to resolve database queries asynchronously for efficiency.

0 commit comments

Comments
 (0)