Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Reverse engineering is the process of scaffolding entity type classes and a [DbC

## Prerequisites

- Before scaffolding, you'll need to install either the [PMC tools](xref:core/cli/powershell), which work on Visual Studio only, or the [.NET CLI tools](xref:core/cli/dotnet), which across all platforms supported by .NET.
- Before scaffolding, you'll need to install either the [PMC tools](xref:core/cli/powershell), which work on Visual Studio only, or the [.NET CLI tools](xref:core/cli/dotnet), which work across all platforms supported by .NET.
- Install the NuGet package for `Microsoft.EntityFrameworkCore.Design` in the project you are scaffolding to.
- Install the NuGet package for the [database provider](xref:core/providers/index) that targets the database schema you want to scaffold from.

Expand Down
2 changes: 1 addition & 1 deletion entity-framework/core/modeling/entity-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Entity types can be mapped to database views using the Fluent API.

[!code-csharp[Main](../../../samples/core/Modeling/EntityTypes/FluentAPI/ViewNameAndSchema.cs?name=ViewNameAndSchema&highlight=1)]

Mapping to a view will remove the default table mapping, but the entity type can also be mapped to a table explicitly. In this case the query mapping will be used for queries and the table mapping will be used for updates.
Mapping to a view will remove the default table mapping, but the entity type can also be mapped to a table explicitly. In this case the view mapping will be used for queries and the table mapping will be used for updates.

> [!TIP]
> To test keyless entity types mapped to views using the in-memory provider, map them to a query via <xref:Microsoft.EntityFrameworkCore.InMemoryEntityTypeBuilderExtensions.ToInMemoryQuery*>. See the [in-memory provider docs](xref:core/testing/testing-without-the-database#in-memory-provider) for more information.
Expand Down