From b2ba4ebb746cc8e66ccb50c53c9b0bd271c50eb1 Mon Sep 17 00:00:00 2001 From: lajones Date: Fri, 10 Jul 2020 09:47:09 -0700 Subject: [PATCH] --connection for database update is EFCore 5 onwards. (#2505) --connection for database update is EF Core 5 onwards. --- entity-framework/core/miscellaneous/cli/dotnet.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/entity-framework/core/miscellaneous/cli/dotnet.md b/entity-framework/core/miscellaneous/cli/dotnet.md index 4124f3e141..dd276f920e 100644 --- a/entity-framework/core/miscellaneous/cli/dotnet.md +++ b/entity-framework/core/miscellaneous/cli/dotnet.md @@ -197,7 +197,7 @@ Options: | | Option | Description | |:------------------|:-------------------------|:---------------------------------------------------------| -| | `--connection ` | The connection string to the database. Defaults to the one specified in `AddDbContext` or `OnConfiguring`. | +| | `--connection ` | The connection string to the database. Defaults to the one specified in `AddDbContext` or `OnConfiguring`. (Available from EF Core 5.0.0 onwards.) | The following examples update the database to a specified migration. The first uses the migration name and the second uses the migration ID and a specified connection: @@ -233,14 +233,14 @@ Options: | `-d` | `--data-annotations` | Use attributes to configure the model (where possible). If this option is omitted, only the fluent API is used. | | `-c` | `--context ` | The name of the `DbContext` class to generate. | | | `--context-dir ` | The directory to put the `DbContext` class file in. Paths are relative to the project directory. Namespaces are derived from the folder names. | -| | `--context-namespace ` | The namespace to use for the generated `DbContext` class. Note: overrides `--namespace`. (Available from EFCore 5.0.0 onwards.) | +| | `--context-namespace ` | The namespace to use for the generated `DbContext` class. Note: overrides `--namespace`. (Available from EF Core 5.0.0 onwards.) | | `-f` | `--force` | Overwrite existing files. | | `-o` | `--output-dir ` | The directory to put entity class files in. Paths are relative to the project directory. | -| `-n` | `--namespace ` | The namespace to use for all generated classes. Defaults to generated from the root namespace and the output directory. (Available from EFCore 5.0.0 onwards.) | +| `-n` | `--namespace ` | The namespace to use for all generated classes. Defaults to generated from the root namespace and the output directory. (Available from EF Core 5.0.0 onwards.) | | | `--schema ...` | The schemas of tables to generate entity types for. To specify multiple schemas, repeat `--schema` for each one. If this option is omitted, all schemas are included. | | `-t` | `--table `... | The tables to generate entity types for. To specify multiple tables, repeat `-t` or `--table` for each one. If this option is omitted, all tables are included. | | | `--use-database-names` | Use table and column names exactly as they appear in the database. If this option is omitted, database names are changed to more closely conform to C# name style conventions. | -| | `--no-onconfiguring` | Suppresses generation of the `OnConfiguring` method in the generated `DbContext` class. (Available from EFCore 5.0.0 onwards.) | +| | `--no-onconfiguring` | Suppresses generation of the `OnConfiguring` method in the generated `DbContext` class. (Available from EF Core 5.0.0 onwards.) | The following example scaffolds all schemas and tables and puts the new files in the *Models* folder. @@ -269,7 +269,7 @@ Options: | | Option | Description | |:------------------|:-----------------------------------|:-----------------------------------------------------------------------------------------------------------------| | `-o` | `--output-dir ` | The directory use to output the files. Paths are relative to the target project directory. Defaults to "Migrations". | -| `-n` | `--namespace ` | The namespace to use for the generated classes. Defaults to generated from the output directory. (Available from EFCore 5.0.0 onwards.) | +| `-n` | `--namespace ` | The namespace to use for the generated classes. Defaults to generated from the output directory. (Available from EF Core 5.0.0 onwards.) | ## dotnet ef migrations list