DbContextInfo Class
Entity Framework 5.0
Provides runtime information about a given DbContext type.
Namespace: System.Data.Entity.Infrastructure
Assembly: EntityFramework (in EntityFramework.dll)
The DbContextInfo type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DbContextInfo(Type) | Initializes a new instance representing a given DbContext type. |
![]() | DbContextInfo(Type, Configuration) | Initializes a new instance representing a given DbContext type. An external config object (e.g. app.config or web.config) can be supplied and will be used during connection string resolution. This includes looking for connection strings and DefaultConnectionFactory entries. |
![]() | DbContextInfo(Type, ConnectionStringSettingsCollection) | Obsolete. Initializes a new instance representing a given DbContext type. An external list of connection strings can be supplied and will be used during connection string resolution in place of any connection strings specified in external configuration files. |
![]() | DbContextInfo(Type, DbConnectionInfo) | Initializes a new instance representing a given DbContext targeting a specific database. |
![]() | DbContextInfo(Type, DbProviderInfo) | Initializes a new instance representing a given DbContext type. A DbProviderInfo object can be supplied in order to override the default determined provider used when constructing the underlying EDM model. |
![]() | DbContextInfo(Type, Configuration, DbConnectionInfo) | Initializes a new instance representing a given DbContext, targeting a specific database. An external config object (e.g. app.config or web.config) can be supplied and will be used during connection string resolution. This includes looking for connection strings and DefaultConnectionFactory entries. |
![]() | DbContextInfo(Type, Configuration, DbProviderInfo) | Creates a new instance of the DbContextInfo type that represents a given DbContext. An external config object (e.g. app.config or web.config) can be supplied and will be used during connection string resolution. This includes looking for connection strings and DefaultConnectionFactory entries. The DbProviderInfo object can be supplied in order to override the default determined provider used when constructing the underlying EDM model. |
| Name | Description | |
|---|---|---|
![]() | ConnectionProviderName | Gets or sets the ADO.NET provider name of the connection used by the underlying DbContext type. |
![]() | ConnectionString | Gets or sets the connection string used by the underlying DbContext type. |
![]() | ConnectionStringName | Gets or sets the connection string name used by the underlying DbContext type. |
![]() | ConnectionStringOrigin | Gets or sets the origin of the connection string used by the underlying DbContext type. |
![]() | ContextType | Gets or sets the concrete DbContext type. |
![]() | IsConstructible | Gets or sets a value that indicates whether the underlying DbContext type can be created. |
![]() | OnModelCreating | Gets or sets the model for a derived context that has been initialized. |
| Name | Description | |
|---|---|---|
![]() | CreateInstance | Creates a new instance representing a given DbContext type. |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
Show:
