Skip to content

Commit

Permalink
Clarify how the --table and --schema parameters work when scaffolding (
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcvickers authored Jan 19, 2023
1 parent 2d866f7 commit 4db857b
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 22 deletions.
6 changes: 3 additions & 3 deletions src/EFCore.Tools/tools/EntityFrameworkCore.PS2.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -277,16 +277,16 @@ function Remove-Migration(
The name of the DbContext. Defaults to the database name.
.PARAMETER Schemas
The schemas of tables to generate entity types for.
The schemas of tables and views to generate entity types for. All tables and views in the schemas will be included in the model, even if they are not explicitly included with the 'Tables' parameter.
.PARAMETER Tables
The tables to generate entity types for.
The tables and views to generate entity types for. Tables or views in a specific schema can be included using the 'schema.table' or 'schema.view' format.
.PARAMETER DataAnnotations
Use attributes to configure the model (where possible). If omitted, only the fluent API is used.
.PARAMETER UseDatabaseNames
Use table and column names directly from the database.
Use table, view, sequence, and column names directly from the database.
.PARAMETER Force
Overwrite existing files.
Expand Down
6 changes: 3 additions & 3 deletions src/EFCore.Tools/tools/EntityFrameworkCore.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -574,16 +574,16 @@ Register-TabExpansion Scaffold-DbContext @{
The name of the DbContext. Defaults to the database name.
.PARAMETER Schemas
The schemas of tables to generate entity types for.
The schemas of tables and views to generate entity types for. All tables and views in the schemas will be included in the model, even if they are not explicitly included with the 'Tables' parameter.
.PARAMETER Tables
The tables to generate entity types for.
The tables and views to generate entity types for. Tables or views in a specific schema can be included using the 'schema.table' or 'schema.view' format.
.PARAMETER DataAnnotations
Use attributes to configure the model (where possible). If omitted, only the fluent API is used.
.PARAMETER UseDatabaseNames
Use table and column names directly from the database.
Use table, view, sequence, and column names directly from the database.
.PARAMETER Force
Overwrite existing files.
Expand Down
7 changes: 3 additions & 4 deletions src/dotnet-ef/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/dotnet-ef/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
<value>The runtime to use.</value>
</data>
<data name="SchemasDescription" xml:space="preserve">
<value>The schemas of tables to generate entity types for.</value>
<value>The schemas of tables and views to generate entity types for. All tables and views in the schemas will be included in the model, even if they are not explicitly included with the --table parameter.</value>
</data>
<data name="SelfContainedDescription" xml:space="preserve">
<value>Also bundle the .NET runtime so it doesn't need to be installed on the machine.</value>
Expand All @@ -322,7 +322,7 @@
<value>Don't generate DbContext.OnConfiguring.</value>
</data>
<data name="TablesDescription" xml:space="preserve">
<value>The tables to generate entity types for.</value>
<value>The tables and views to generate entity types for. Tables or views in a specific schema can be included using the 'schema.table' or 'schema.view' format.</value>
</data>
<data name="UnsupportedFramework" xml:space="preserve">
<value>Startup project '{startupProject}' targets framework '{targetFramework}'. The Entity Framework Core .NET Command-line Tools don't support this framework. See https://aka.ms/efcore-docs-cli-tfms for more information.</value>
Expand All @@ -331,7 +331,7 @@
<value>Startup project '{startupProject}' targets platform '{targetPlatform}'. The Entity Framework Core .NET Command-line Tools don't support this platform. See https://aka.ms/efcore-docs-cli-tfms for more information.</value>
</data>
<data name="UseDatabaseNamesDescription" xml:space="preserve">
<value>Use table and column names directly from the database.</value>
<value>Use table, view, sequence, and column names directly from the database.</value>
</data>
<data name="UsingProject" xml:space="preserve">
<value>Using project '{project}'.</value>
Expand All @@ -345,4 +345,4 @@
<data name="WritingFile" xml:space="preserve">
<value>Writing '{file}'...</value>
</data>
</root>
</root>
7 changes: 3 additions & 4 deletions src/ef/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/ef/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@
<value>The root namespace. Defaults to the target assembly name.</value>
</data>
<data name="SchemasDescription" xml:space="preserve">
<value>The schemas of tables to generate entity types for.</value>
<value>The schemas of tables and views to generate entity types for. All tables and views in the schemas will be included in the model, even if they are not explicitly included with the --table parameter.</value>
</data>
<data name="SelfContainedDescription" xml:space="preserve">
<value>Also bundle the .NET runtime so it doesn't need to be installed on the machine.</value>
Expand All @@ -361,10 +361,10 @@
<value>Don't generate DbContext.OnConfiguring.</value>
</data>
<data name="TablesDescription" xml:space="preserve">
<value>The tables to generate entity types for.</value>
<value>The tables and views to generate entity types for. Tables or views in a specific schema can be included using the 'schema.table' or 'schema.view' format.</value>
</data>
<data name="UseDatabaseNamesDescription" xml:space="preserve">
<value>Use table and column names directly from the database.</value>
<value>Use table, view, sequence, and column names directly from the database.</value>
</data>
<data name="UsingApplicationBase" xml:space="preserve">
<value>Using application base '{appBase}'.</value>
Expand Down Expand Up @@ -402,4 +402,4 @@
<data name="WritingFile" xml:space="preserve">
<value>Writing '{file}'...</value>
</data>
</root>
</root>

0 comments on commit 4db857b

Please sign in to comment.