DbConnectionStringOrigin Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes the origin of the database connection string associated with a DbContext.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="Casing is intentional")]
public enum DbConnectionStringOrigin
public enum DbConnectionStringOrigin
type DbConnectionStringOrigin =
Public Enum DbConnectionStringOrigin
- Inheritance
-
DbConnectionStringOrigin
- Attributes
Fields
Name | Value | Description |
---|---|---|
Convention | 0 | The connection string was created by convention. |
Configuration | 1 | The connection string was read from external configuration. |
UserCode | 2 | The connection string was explicitly specified at runtime. |
DbContextInfo | 3 | The connection string was overriden by connection information supplied to DbContextInfo. |
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework