Export (0) Print
Expand All
Expand Minimize

System.Data.Entity.Infrastructure Namespace

Entity Framework 5.0

Contains classes that support core Entity Framework functionality. You would typically only interact with these types as the return value of an API call from a type in the System.Data.Entity namespace.

  Class Description
Public class DbChangeTracker Returned by the ChangeTracker method of DbContext to provide access to features of the context that are related to change tracking of entities.
Public class DbCollectionEntry A non-generic version of the DbCollectionEntry<TEntity, TElement> class.
Public class DbCollectionEntry<TEntity, TElement> Instances of this class are returned from the Collection method of DbEntityEntry<TEntity> and allow operations such as loading to be performed on the entity's collection navigation properties.
Public class DbCompiledModel An immutable representation of an Entity Data Model (EDM) model that can be used to create an ObjectContext or can be passed to the constructor of a DbContext. For increased performance, instances of this type should be cached and re-used to construct contexts.
Public class DbComplexPropertyEntry A non-generic version of the DbComplexPropertyEntry<TEntity, TComplexProperty> class.
Public class DbComplexPropertyEntry<TEntity, TComplexProperty> Instances of this class are returned from the ComplexProperty method of DbEntityEntry<TEntity> and allow access to the state of a complex property.
Public class DbConnectionInfo Represents information about a database connection.
Public class DbContextConfiguration Returned by the Configuration method of DbContext to provide access to configuration options for the context.
Public class DbContextInfo Provides runtime information about a given DbContext type.
Public class DbEntityEntry A non-generic version of the DbEntityEntry<TEntity> class.
Public class DbEntityEntry<TEntity> Instances of this class provide access to information about and control of entities that are being tracked by the DbContext. Use the Entity or Entities methods of the context to obtain objects of this type.
Public class DbMemberEntry This is an abstract base class use to represent a scalar or complex property, or a navigation property of an entity. Scalar and complex properties use the derived class DbPropertyEntry, reference navigation properties use the derived class DbReferenceEntry, and collection navigation properties use the derived class DbCollectionEntry.
Public class DbMemberEntry<TEntity, TProperty> An abstract base class used to represent a scalar or complex property, or a navigation property of an entity. Scalar and complex properties use the derived class DbPropertyEntry<TEntity, TProperty>, reference navigation properties use the derived class DbReferenceEntry<TEntity, TProperty>, and collection navigation properties use the derived class DbCollectionEntry<TEntity, TElement>.
Public class DbModel Represents an Entity Data Model (EDM) created by the DbModelBuilder. The Compile() method can be used to convert from an EDM representation to a DbCompiledModel which is a compiled snapshot of the model suitable for caching and creation of DbContext or ObjectContext instances.
Public class DbPropertyEntry A non-generic version of the DbPropertyEntry<TEntity, TProperty> class.
Public class DbPropertyEntry<TEntity, TProperty> Instances of this class are returned from the Property method of DbEntityEntry<TEntity> and allow access to the state of the scalar or complex property.
Public class DbPropertyValues A collection of all the properties for an underlying entity or complex object.
Public class DbProviderInfo Stores information about a database provider.
Public class DbQuery Represents a non-generic LINQ to Entities query against a DbContext.
Public class DbQuery<TResult> Represents a LINQ to Entities query against a DbContext.
Public class DbReferenceEntry A non-generic version of the DbReferenceEntry<TEntity, TProperty> class.
Public class DbReferenceEntry<TEntity, TProperty> Instances of this class are returned from the Reference method of DbEntityEntry<TEntity> and allow operations such as loading to be performed on the entity's reference navigation properties.
Public class DbSqlQuery Represents a SQL query for entities that is created from a DbContext and is executed using the connection from that context. Instances of this class are obtained from the DbSet instance for the entity type. The query is not executed when this object is created; it is executed each time it is enumerated, for example by using foreach. SQL queries for non-entities are created using the Database. See DbSqlQuery<TEntity> for a generic version of this class.
Public class DbSqlQuery<TEntity> Represents a SQL query for entities that are created from a DbContext and is executed using the connection from that context. Instances of this class are obtained from the DbSet<TEntity> instance for the entity type. The query is not executed when this object is created; it is executed each time it is enumerated, for example by using foreach. SQL queries for non-entities are created using the Database. See DbSqlQuery for a non-generic version of this class.
Public class DbUpdateConcurrencyException Exception thrown by DbContext when the expected behavior is that SaveChanges for an entity would result in a database update but in fact no rows in the database were affected. This usually indicates that the database has been concurrently updated and a concurrency token that was expected to match did not actually match. State entries referenced by this exception are not serialized due to security and access to the state entries after serialization will return null.
Public class DbUpdateException Represents the exceptions encountered during a database update.
Public class EdmMetadata Obsolete. Represents an entity used to store metadata about an EDM in the database.
Public class EdmxWriter Contains methods used to access the Entity Data Model created by Code First in the EDMX form. These methods are typically used for debugging when there is a need to look at the model that Code First creates internally.
Public class IncludeMetadataConvention Obsolete. This DbModelBuilder convention causes DbModelBuilder to include metadata about the model when it builds the model. When DbContext creates a model by convention it will add this convention to the list of those used by the DbModelBuilder. This will result in model metadata being written to the database if the DbContext is used to create the database. This can then be used to verify whether the model has changed since the last time it was used against the database. This convention can be removed from the list of DbModelBuilder conventions by overriding the OnModelCreating(DbModelBuilder) method.
Public class LocalDbConnectionFactory Instances of this class are used to create DbConnection objects for SQL Server LocalDb based on a given database name or connection string.
Public class ModelContainerConvention This DbModelBuilder convention uses the name of the derived DbContext class as the container for the conceptual model built by Code First.
Public class ModelNamespaceConvention This DbModelBuilder convention uses the namespace of the derived DbContext class as the namespace of the conceptual model built by Code First.
Public class ReplacementDbQueryWrapper<TElement> Instances of this class are used internally to create constant expressionsthat are inserted into the expression tree to replace references to DbQuery<TResult> and DbQuery.
Public class SqlCeConnectionFactory Instances of this class are used to create DbConnection objects for SQL Server Compact Edition based on a given database name or connection string.
Public class SqlConnectionFactory Instances of this class are used to create DbConnection objects for SQL Server based on a given database name or connection string. By default, the connection is made to '.\SQLEXPRESS'. This can be changed by changing the base connection string when constructing a factory instance.
Public class SuppressDbSetInitializationAttribute This attribute can be applied to either an entire derived DbContext class or to individual DbSet<TEntity> or IDbSet<TEntity> properties on that class. When applied any discovered DbSet<TEntity> or IDbSet<TEntity> properties will still be included in the model but will not be automatically initialized.
Public class UnintentionalCodeFirstException The exception that is thrown when a context is generated from the DbContext templates in Database First or Model First mode, and is then used in Code First mode.

  Interface Description
Public interface IDbConnectionFactory Implementations of this interface are used to create DbConnection objects for a type of database server based on a given database name. An Instance is set on the Database class to cause all DbContext objects to be created with no connection information or just a database name or connection string to use a certain type of database server by default. Two implementations of this interface are provided SqlConnectionFactory which is used to create connections to Microsoft SQL Server, including EXPRESS editions, and SqlCeConnectionFactory which is used to create connections to Microsoft SQL Server Compact Editions. Other implementations for other database servers can be added as needed. Implementations should be thread safe or immutable since they may be accessed by multiple threads at the same time.
Public interface IDbContextFactory<TContext> A factory for creating derived DbContext instances. Implement this interface to enable design-time services and instantiation for context types that do not have a public default constructor. You can create derived DbContext instances at design time to enable specific design-time experiences such as model rendering and DDL generation. Design-time services can auto-discover implementations of this interface that are in the same assembly as the derived DbContext type.
Public interface IObjectContextAdapter Interface implemented by objects that can provide an ObjectContext instance. The DbContext class implements this interface to provide access to the underlying ObjectContext.

  Enumeration Description
Public enumeration DbConnectionStringOrigin Describes the origin of the database connection string associated with a DbContext object.
Show:
© 2014 Microsoft