Export (0) Print
Expand All

DbContextInfo Class

Entity Framework 5.0

Provides runtime information about a given DbContext type.

System.Object
  System.Data.Entity.Infrastructure.DbContextInfo

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

public class DbContextInfo

The DbContextInfo type exposes the following members.

  NameDescription
Public methodDbContextInfo(Type)Initializes a new instance representing a given DbContext type.
Public methodDbContextInfo(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.
Public methodDbContextInfo(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.
Public methodDbContextInfo(Type, DbConnectionInfo)Initializes a new instance representing a given DbContext targeting a specific database.
Public methodDbContextInfo(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.
Public methodDbContextInfo(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.
Public methodDbContextInfo(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.
Top

  NameDescription
Public propertyConnectionProviderNameGets or sets the ADO.NET provider name of the connection used by the underlying DbContext type.
Public propertyConnectionStringGets or sets the connection string used by the underlying DbContext type.
Public propertyConnectionStringNameGets or sets the connection string name used by the underlying DbContext type.
Public propertyConnectionStringOriginGets or sets the origin of the connection string used by the underlying DbContext type.
Public propertyContextTypeGets or sets the concrete DbContext type.
Public propertyIsConstructibleGets or sets a value that indicates whether the underlying DbContext type can be created.
Public propertyOnModelCreatingGets or sets the model for a derived context that has been initialized.
Top

  NameDescription
Public methodCreateInstanceCreates a new instance representing a given DbContext type.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft