Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tools: Review resource strings #22469

Merged
1 commit merged into from
Sep 9, 2020
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
27 changes: 14 additions & 13 deletions src/EFCore.Tools/tools/EntityFrameworkCore.PS2.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ $versionErrorMessage = 'The Entity Framework Core Package Manager Console Tools
The name of the migration.

.PARAMETER OutputDir
The directory (and sub-namespace) to use. Paths are relative to the project directory. Defaults to "Migrations".
The directory to put files in. Paths are relative to the project directory. Defaults to "Migrations".

.PARAMETER Context
The DbContext type to use.
The DbContext to use.

.PARAMETER Project
The project to use.
Expand All @@ -26,7 +26,7 @@ $versionErrorMessage = 'The Entity Framework Core Package Manager Console Tools
The startup project to use. Defaults to the solution's startup project.

.PARAMETER Namespace
Specify to override the namespace for the migration.
The namespace to use. Defaults to match the directory.

.PARAMETER Args
Arguments passed to the application.
Expand Down Expand Up @@ -89,10 +89,10 @@ function Enable-Migrations

<#
.SYNOPSIS
Gets information about DbContext types.
Lists and gets information about available DbContext types.

.DESCRIPTION
Gets information about DbContext types.
Lists and gets information about available DbContext types.

.PARAMETER Context
The DbContext to use.
Expand Down Expand Up @@ -129,6 +129,7 @@ function Get-DbContext(
The connection string to the database. Defaults to the one specified in AddDbContext or OnConfiguring.

.PARAMETER NoConnect
Don't connect to the database.

.PARAMETER Context
The DbContext to use.
Expand Down Expand Up @@ -213,10 +214,10 @@ function Remove-Migration(
The directory to put files in. Paths are relative to the project directory.

.PARAMETER ContextDir
The directory to put DbContext file in. Paths are relative to the project directory.
The directory to put the DbContext file in. Paths are relative to the project directory.

.PARAMETER Context
The name of the DbContext to generate.
The name of the DbContext. Defaults to the database name.

.PARAMETER Schemas
The schemas of tables to generate entity types for.
Expand All @@ -234,7 +235,7 @@ function Remove-Migration(
Overwrite existing files.

.PARAMETER NoOnConfiguring
Suppress generation of the DbContext.OnConfiguring() method.
Don't generate DbContext.OnConfiguring.

.PARAMETER Project
The project to use.
Expand All @@ -243,10 +244,10 @@ function Remove-Migration(
The startup project to use. Defaults to the solution's startup project.

.PARAMETER Namespace
Specify to override the namespace for the generated entity types.
The namespace to use. Defaults to match the directory.

.PARAMETER ContextNamespace
Specify to override the namespace for the DbContext class.
The namespace of the DbContext class. Defaults to match the directory.

.PARAMETER NoPluralize
Don't use the pluralizer.
Expand Down Expand Up @@ -281,10 +282,10 @@ function Scaffold-DbContext(

<#
.SYNOPSIS
Generates a SQL script from current DbContext.
Generates a SQL script from the DbContext. Bypasses any migrations.

.DESCRIPTION
Generates a SQL script from current DbContext.
Generates a SQL script from the DbContext. Bypasses any migrations.

.PARAMETER Output
The file to write the result to.
Expand Down Expand Up @@ -325,7 +326,7 @@ function Script-DbContext(
The starting migration. Defaults to '0' (the initial database).

.PARAMETER To
The ending migration. Defaults to the last migration.
The target migration. Defaults to the last migration.

.PARAMETER Idempotent
Generate a script that can be used on a database at any migration.
Expand Down
27 changes: 14 additions & 13 deletions src/EFCore.Tools/tools/EntityFrameworkCore.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ Register-TabExpansion Add-Migration @{
The name of the migration.

.PARAMETER OutputDir
The directory (and sub-namespace) to use. Paths are relative to the project directory. Defaults to "Migrations".
The directory to put files in. Paths are relative to the project directory. Defaults to "Migrations".

.PARAMETER Context
The DbContext type to use.
The DbContext to use.

.PARAMETER Project
The project to use.
Expand All @@ -34,7 +34,7 @@ Register-TabExpansion Add-Migration @{
The startup project to use. Defaults to the solution's startup project.

.PARAMETER Namespace
Specify to override the namespace for the migration.
The namespace to use. Defaults to match the directory.

.PARAMETER Args
Arguments passed to the application.
Expand Down Expand Up @@ -167,10 +167,10 @@ Register-TabExpansion Get-DbContext @{

<#
.SYNOPSIS
Gets information about DbContext types.
Lists and gets information about available DbContext types.

.DESCRIPTION
Gets information about DbContext types.
Lists and gets information about available DbContext types.

.PARAMETER Context
The DbContext to use.
Expand Down Expand Up @@ -237,6 +237,7 @@ Register-TabExpansion Get-Migration @{
The connection string to the database. Defaults to the one specified in AddDbContext or OnConfiguring.

.PARAMETER NoConnect
Don't connect to the database.

.PARAMETER Context
The DbContext to use.
Expand Down Expand Up @@ -393,10 +394,10 @@ Register-TabExpansion Scaffold-DbContext @{
The directory to put files in. Paths are relative to the project directory.

.PARAMETER ContextDir
The directory to put DbContext file in. Paths are relative to the project directory.
The directory to put the DbContext file in. Paths are relative to the project directory.

.PARAMETER Context
The name of the DbContext to generate.
The name of the DbContext. Defaults to the database name.

.PARAMETER Schemas
The schemas of tables to generate entity types for.
Expand All @@ -414,7 +415,7 @@ Register-TabExpansion Scaffold-DbContext @{
Overwrite existing files.

.PARAMETER NoOnConfiguring
Suppress generation of the DbContext.OnConfiguring() method.
Don't generate DbContext.OnConfiguring.

.PARAMETER Project
The project to use.
Expand All @@ -423,10 +424,10 @@ Register-TabExpansion Scaffold-DbContext @{
The startup project to use. Defaults to the solution's startup project.

.PARAMETER Namespace
Specify to override the namespace for the generated entity types.
The namespace to use. Defaults to match the directory.

.PARAMETER ContextNamespace
Specify to override the namespace for the DbContext class.
The namespace of the DbContext class. Defaults to match the directory.

.PARAMETER NoPluralize
Don't use the pluralizer.
Expand Down Expand Up @@ -540,10 +541,10 @@ Register-TabExpansion Script-DbContext @{

<#
.SYNOPSIS
Generates a SQL script from current DbContext.
Generates a SQL script from the DbContext. Bypasses any migrations.

.DESCRIPTION
Generates a SQL script from current DbContext.
Generates a SQL script from the DbContext. Bypasses any migrations.

.PARAMETER Output
The file to write the result to.
Expand Down Expand Up @@ -625,7 +626,7 @@ Register-TabExpansion Script-Migration @{
The starting migration. Defaults to '0' (the initial database).

.PARAMETER To
The ending migration. Defaults to the last migration.
The target migration. Defaults to the last migration.

.PARAMETER Idempotent
Generate a script that can be used on a database at any migration.
Expand Down
6 changes: 3 additions & 3 deletions src/EFCore.Tools/tools/about_EntityFrameworkCore.help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ LONG DESCRIPTION

Drop-Database Drops the database.

Get-DbContext Gets information about a DbContext type.
Get-DbContext Lists and gets information about available DbContext types.

Get-Migration Lists the migrations in the migration assembly.
Get-Migration Lists available migrations.

Remove-Migration Removes the last migration.

Scaffold-DbContext Scaffolds a DbContext and entity types for a database.

Script-DbContext Generates a SQL script from the current DbContext.
Script-DbContext Generates a SQL script from the DbContext. Bypasses any migrations.

Script-Migration Generates a SQL script from migrations.

Expand Down
42 changes: 21 additions & 21 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.

Loading