Skip to content

Commit c2c1b41

Browse files
committed
ROPC warnings
1 parent a1dc0a5 commit c2c1b41

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

entity-framework/core/cli/powershell.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ The Package Manager Console (PMC) tools for Entity Framework Core perform design
1111

1212
If you aren't using Visual Studio, we recommend the [EF Core Command-line Tools](xref:core/cli/dotnet) instead. The .NET Core CLI tools are cross-platform and run inside a command prompt.
1313

14+
[!INCLUDE [managed-identities-test-non-production](~/core/includes/managed-identities-test-non-production.md)]
15+
1416
## Installing the tools
1517

1618
Install the Package Manager Console tools by running the following command in **Package Manager Console**:
@@ -215,7 +217,7 @@ Parameters:
215217

216218
| Parameter | Description |
217219
|:------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
218-
| <nobr>`-Connection <String>`</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. This is a positional parameter and is required. |
220+
| <nobr>`-Connection <String>`</nobr> | The connection string to the database. 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. This is a positional parameter and is required. |
219221
| <nobr>`-Provider <String>`</nobr> | The provider to use. Typically this is the name of the NuGet package, for example: `Microsoft.EntityFrameworkCore.SqlServer`. This is a positional parameter and is required. |
220222
| <nobr>`-OutputDir <String>`</nobr> | The directory to put entity class files in. Paths are relative to the project directory. |
221223
| <nobr>`-ContextDir <String>`</nobr> | The directory to put the `DbContext` file in. Paths are relative to the project directory. |

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ Both the PMC and the .NET CLI commands have two required arguments: the connecti
3131

3232
The first argument to the command is a connection string to the database. The tools use this connection string to read the database schema.
3333

34-
3534
How the connection string is quoted and escaped depends on the shell is used to run the command. Refer to the shell's documentation. For example, PowerShell requires escaping `$`, but not `\`.
3635

3736
The following example scaffolds entity types and a `DbContext` from the `Chinook` database located on the machine's SQL Server LocalDB instance, making use of the `Microsoft.EntityFrameworkCore.SqlServer` database provider.

entity-framework/core/miscellaneous/multitenancy.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ uid: core/miscellaneous/multitenancy
1010

1111
Many line of business applications are designed to work with multiple customers. It is important to secure the data so that customer data isn't "leaked" or seen by other customers and potential competitors. These applications are classified as "multi-tenant" because each customer is considered a tenant of the application with their own set of data.
1212

13+
[!INCLUDE [managed-identities-test-non-production](~/core/includes/managed-identities-test-non-production.md)]
14+
1315
> [!IMPORTANT]
1416
> This document provides examples and solutions "as is." These are not intended to be "best practices" but rather "working practices" for your consideration.
1517

entity-framework/ef6/fundamentals/configuring/config-file.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,16 @@ ms.date: 10/23/2016
66
uid: ef6/fundamentals/configuring/config-file
77
---
88
# Configuration File Settings
9-
Entity Framework allows a number of settings to be specified from the configuration file. In general EF follows a ‘convention over configuration’ principle: all the settings discussed in this post have a default behavior, you only need to worry about changing the setting when the default no longer satisfies your requirements.
9+
Entity Framework allows a number of settings to be specified from the configuration file. In general EF follows a ‘convention over configuration’ principle: all the settings discussed in this post have a default behavior, you only need to worry about changing the setting when the default no longer satisfies your requirements.
10+
11+
12+
## Configuration data guidelines
13+
14+
* Never store passwords or other sensitive data in configuration provider code or in plain text configuration files.
15+
* Don't use production secrets in development or test environments.
16+
* Specify secrets outside of the project so that they can't be accidentally committed to a source code repository.
17+
18+
[!INCLUDE [managed-identities-test-non-production](~/core/includes/managed-identities-test-non-production.md)]
1019

1120
## A Code-Based Alternative
1221

entity-framework/ef6/fundamentals/configuring/connection-strings.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ This article covers how Entity Framework discovers which database connection to
1111
[!INCLUDE [managed-identities-test-non-production](~/core/includes/managed-identities-test-non-production.md)]
1212

1313

14-
Typically an Entity Framework application uses a class derived from DbContext. This derived class will call one of the constructors on the base DbContext class to control:
14+
Typically an Entity Framework application uses a class derived from DbContext. This derived class calls one of the constructors on the base DbContext class to control:
1515

16-
- How the context will connect to a databasethat is, how a connection string is found/used
17-
- Whether the context will use calculate a model using Code First or load a model created with the EF Designer
16+
- How the context connects to a database, that is, how a connection string is found and used
17+
- Whether the context calculates a model using Code First or load a model created with the EF Designer
1818
- Additional advanced options
1919

2020
The following fragments show some of the ways the DbContext constructors can be used.

0 commit comments

Comments
 (0)