Share via


DbConnectionStringOrigin Enum

Definition

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