Skip to content

Commit

Permalink
fix: Remove nobr elements
Browse files Browse the repository at this point in the history
Obsolete element https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nobr
Used around code elements that should already be no-wrap
  • Loading branch information
nschonni committed Oct 15, 2020
1 parent f880316 commit 1791fbe
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .markdownlint.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"MD024": false,
"MD025": { "front_matter_title": "" },
"MD028": false,
"MD033": { "allowed_elements": ["sup", "sub", "nobr", "span", "a"] },
"MD033": { "allowed_elements": ["sup", "sub", "a"] },
"MD036": false
}
40 changes: 20 additions & 20 deletions entity-framework/core/miscellaneous/cli/dotnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ Before using the tools, you might have to create a startup project or set the en

The commands refer to a *project* and a *startup project*.

* The *project* is also known as the *target project* because it's where the commands add or remove files. By default, the project in the current directory is the target project. You can specify a different project as target project by using the <nobr>`--project`</nobr> option.
* The *project* is also known as the *target project* because it's where the commands add or remove files. By default, the project in the current directory is the target project. You can specify a different project as target project by using the `--project` option.

* The *startup project* is the one that the tools build and run. The tools have to execute application code at design time to get information about the project, such as the database connection string and the configuration of the model. By default, the project in the current directory is the startup project. You can specify a different project as startup project by using the <nobr>`--startup-project`</nobr> option.
* The *startup project* is the one that the tools build and run. The tools have to execute application code at design time to get information about the project, such as the database connection string and the configuration of the model. By default, the project in the current directory is the startup project. You can specify a different project as startup project by using the `--startup-project` option.

The startup project and target project are often the same project. A typical scenario where they are separate projects is when:

Expand All @@ -100,11 +100,11 @@ To specify the environment for ASP.NET Core projects, set the **ASPNETCORE_ENVIR
| Option | Short | Description |
|:-----------------------------------------------|:------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `--json` | | Show JSON output. |
| `--context <DBCONTEXT>` | <nobr>`-c`</nobr> | The `DbContext` class to use. Class name only or fully qualified with namespaces. If this option is omitted, EF Core will find the context class. If there are multiple context classes, this option is required. |
| `--context <DBCONTEXT>` | `-c` | The `DbContext` class to use. Class name only or fully qualified with namespaces. If this option is omitted, EF Core will find the context class. If there are multiple context classes, this option is required. |
| `--project <PROJECT>` | `-p` | Relative path to the project folder of the target project. Default value is the current folder. |
| `--startup-project <PROJECT>` | `-s` | Relative path to the project folder of the startup project. Default value is the current folder. |
| `--framework <FRAMEWORK>` | | The [Target Framework Moniker](/dotnet/standard/frameworks#supported-target-framework-versions) for the [target framework](/dotnet/standard/frameworks). Use when the project file specifies multiple target frameworks, and you want to select one of them. |
| <nobr>`--configuration <CONFIGURATION>`</nobr> | | The build configuration, for example: `Debug` or `Release`. |
| `--configuration <CONFIGURATION>` | | The build configuration, for example: `Debug` or `Release`. |
| `--runtime <IDENTIFIER>` | | The identifier of the target runtime to restore packages for. For a list of Runtime Identifiers (RIDs), see the [RID catalog](/dotnet/core/rid-catalog). |
| `--no-build` | | Don't build the project. Intended to be used when the build is up-to-date. |
| `--help` | `-h` | Show help information. |
Expand All @@ -122,8 +122,8 @@ Options:

| Option | Short | Description |
|:-------------------------|:------------------|:---------------------------------------------------------|
| `--force` | <nobr>`-f`</nobr> | Don't confirm. |
| <nobr>`--dry-run`</nobr> | | Show which database would be dropped, but don't drop it. |
| `--force` | `-f` | Don't confirm. |
| `--dry-run` | | Show which database would be dropped, but don't drop it. |

The [common options](#common-options) are listed above.

Expand All @@ -135,13 +135,13 @@ Arguments:

| Argument | Description |
|:---------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| <nobr>`<MIGRATION>`</nobr> | The target migration. Migrations may be identified by name or by ID. The number 0 is a special case that means *before the first migration* and causes all migrations to be reverted. If no migration is specified, the command defaults to the last migration. |
| `<MIGRATION>` | The target migration. Migrations may be identified by name or by ID. The number 0 is a special case that means *before the first migration* and causes all migrations to be reverted. If no migration is specified, the command defaults to the last migration. |

Options:

| Option | Description |
|:------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------|
| <nobr>`--connection <CONNECTION>`</nobr> | The connection string to the database. Defaults to the one specified in `AddDbContext` or `OnConfiguring`. Added in EF Core 5.0. |
| `--connection <CONNECTION>` | The connection string to the database. Defaults to the one specified in `AddDbContext` or `OnConfiguring`. Added in EF Core 5.0. |

The [common options](#common-options) are listed above.

Expand Down Expand Up @@ -172,21 +172,21 @@ Arguments:

| Argument | Description |
|:----------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| <nobr>`<CONNECTION>`</nobr> | The connection string to the database. For ASP.NET Core 2.x projects, the value can be *name=\<name of connection string>*. In that case the name comes from the configuration sources that are set up for the project. |
| `<CONNECTION>` | The connection string to the database. For ASP.NET Core 2.x projects, the value can be *name=\<name of connection string>*. In that case the name comes from the configuration sources that are set up for the project. |
| `<PROVIDER>` | The provider to use. Typically this is the name of the NuGet package, for example: `Microsoft.EntityFrameworkCore.SqlServer`. |

Options:

| Option | Short | Description |
|:-----------------------------------------|:------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `--data-annotations` | <nobr>`-d`</nobr> | Use attributes to configure the model (where possible). If this option is omitted, only the fluent API is used. |
| `--data-annotations` | `-d` | Use attributes to configure the model (where possible). If this option is omitted, only the fluent API is used. |
| `--context <NAME>` | `-c` | The name of the `DbContext` class to generate. |
| `--context-dir <PATH>` | | 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 <NAMESPACE>` | | The namespace to use for the generated `DbContext` class. Note: overrides `--namespace`. Added in EF Core 5.0. |
| `--force` | `-f` | Overwrite existing files. |
| `--output-dir <PATH>` | `-o` | The directory to put entity class files in. Paths are relative to the project directory. |
| `--namespace <NAMESPACE>` | `-n` | The namespace to use for all generated classes. Defaults to generated from the root namespace and the output directory. Added in EF Core 5.0. |
| <nobr>`--schema <SCHEMA_NAME>...`</nobr> | | 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. |
| `--schema <SCHEMA_NAME>...` | | 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. |
| `--table <TABLE_NAME>`... | `-t` | 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. Added in EF Core 5.0. |
Expand Down Expand Up @@ -214,7 +214,7 @@ Options:

| Option | Short | Description |
| ------------------------------ | ----------------- | -------------------------------- |
| <nobr>`--output <FILE>`</nobr> | <nobr>`-o`</nobr> | The file to write the result to. |
| `--output <FILE>` | `-o` | The file to write the result to. |

The [common options](#common-options) are listed above.

Expand All @@ -226,14 +226,14 @@ Arguments:

| Argument | Description |
|:----------------------|:---------------------------|
| <nobr>`<NAME>`</nobr> | The name of the migration. |
| `<NAME>` | The name of the migration. |

Options:

| Option | Short | Description |
|:---------------------------------------|:------------------|:-----------------------------------------------------------------------------------------------------------------------|
| `--output-dir <PATH>` | <nobr>`-o`</nobr> | The directory use to output the files. Paths are relative to the target project directory. Defaults to "Migrations". |
| <nobr>`--namespace <NAMESPACE>`</nobr> | `-n` | The namespace to use for the generated classes. Defaults to generated from the output directory. Added in EF Core 5.0. |
| `--output-dir <PATH>` | `-o` | The directory use to output the files. Paths are relative to the target project directory. Defaults to "Migrations". |
| `--namespace <NAMESPACE>` | `-n` | The namespace to use for the generated classes. Defaults to generated from the output directory. Added in EF Core 5.0. |

The [common options](#common-options) are listed above.

Expand All @@ -245,7 +245,7 @@ Options:

| Option | Description |
| ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| <nobr>`--connection <CONNECTION>`</nobr> | The connection string to the database. Defaults to the one specified in AddDbContext or OnConfiguring. Added in EF Core 5.0. |
| `--connection <CONNECTION>` | The connection string to the database. Defaults to the one specified in AddDbContext or OnConfiguring. Added in EF Core 5.0. |
| `--no-connect` | Don't connect to the database. Added in EF Core 5.0. |

The [common options](#common-options) are listed above.
Expand All @@ -258,7 +258,7 @@ Options:

| Option | Short | Description |
|:-----------------------|:------------------|:--------------------------------------------------------------------------------|
| <nobr>`--force`</nobr> | <nobr>`-f`</nobr> | Revert the migration (roll back the changes that were applied to the database). |
| `--force` | `-f` | Revert the migration (roll back the changes that were applied to the database). |

The [common options](#common-options) are listed above.

Expand All @@ -270,16 +270,16 @@ Arguments:

| Argument | Description |
|:----------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------|
| <nobr>`<FROM>`</nobr> | The starting migration. Migrations may be identified by name or by ID. The number 0 is a special case that means *before the first migration*. Defaults to 0. |
| `<FROM>` | The starting migration. Migrations may be identified by name or by ID. The number 0 is a special case that means *before the first migration*. Defaults to 0. |
| `<TO>` | The ending migration. Defaults to the last migration. |

Options:

| Option | Short | Description |
|:---------------------------------|:------------------|:-------------------------------------------------------------------|
| `--output <FILE>` | <nobr>`-o`</nobr> | The file to write the script to. |
| `--output <FILE>` | `-o` | The file to write the script to. |
| `--idempotent` | `-i` | Generate a script that can be used on a database at any migration. |
| <nobr>`--no-transactions`</nobr> | | Don't generate SQL transaction statements. Added in EF Core 5.0. |
| `--no-transactions` | | Don't generate SQL transaction statements. Added in EF Core 5.0. |

The [common options](#common-options) are listed above.

Expand Down
Loading

0 comments on commit 1791fbe

Please sign in to comment.