Skip to content

Commit c84fd45

Browse files
Merge pull request #5372 from dotnet/main
Auto Publish – main to live - 2026-06-01 23:01 UTC
2 parents 56b5c78 + eed241b commit c84fd45

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

entity-framework/core/managing-schemas/scaffolding/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ Scaffold-DbContext ... -Tables Customer.Purchases, Contractor.Accounts, Contract
136136

137137
Table and column names are fixed up to better match the .NET naming conventions for types and properties by default. Specifying `-UseDatabaseNames` (Visual Studio PMC) or `--use-database-names` (.NET CLI) will disable this behavior preserving the original database names as much as possible. Invalid .NET identifiers will still be fixed and synthesized names like navigation properties will still conform to .NET naming conventions.
138138

139+
To disable the pluralizer when scaffolding reverse-engineered models, use `-NoPluralize` (Visual Studio PMC) or `--no-pluralize` (.NET CLI).
140+
139141
For example, consider the following tables:
140142

141143
```sql

entity-framework/core/modeling/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ It is possible to apply all configuration specified in types implementing `IEnti
4242
> [!NOTE]
4343
> The order in which the configurations will be applied is undefined, therefore this method should only be used when the order doesn't matter.
4444
45+
> [!NOTE]
46+
> `ApplyConfigurationsFromAssembly` only instantiates configuration types that have a parameterless constructor; the constructor may be public or non-public. Types whose constructors require parameters are skipped, and a `SkippedEntityTypeConfigurationWarning` is logged. To apply such configurations, instantiate them manually and pass them to <xref:Microsoft.EntityFrameworkCore.ModelBuilder.ApplyConfiguration%2A>.
47+
4548
#### Using `EntityTypeConfigurationAttribute` on entity types
4649

4750
Rather than explicitly calling `Configure`, an <xref:Microsoft.EntityFrameworkCore.EntityTypeConfigurationAttribute> can instead be placed on the entity type such that EF Core can find and use appropriate configuration. For example:

0 commit comments

Comments
 (0)