DbConnectionStringOrigin Enumeration

 

Describes the origin of the database connection string associated with a DbContext.

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

public enum DbConnectionStringOrigin

Member nameDescription
Configuration

The connection string was read from external configuration.

Convention

The connection string was created by convention.

DbContextInfo

The connection string was overriden by connection information supplied to DbContextInfo.

UserCode

The connection string was explicitly specified at runtime.