|
|
Class |
Description |
|
DbChangeTracker
|
Returned by the ChangeTracker method of DbContext to provide access to features of the context that are related to change tracking of entities.
|
|
DbCollectionEntry
|
A non-generic version of the DbCollectionEntry<TEntity, TElement> 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.
|
|
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.
|
|
DbComplexPropertyEntry
|
A non-generic version of the DbComplexPropertyEntry<TEntity, TComplexProperty> 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.
|
|
DbConnectionInfo
|
Represents information about a database connection.
|
|
DbContextConfiguration
|
Returned by the Configuration method of DbContext to provide access to configuration options for the context.
|
|
DbContextInfo
|
Provides runtime information about a given DbContext type.
|
|
DbEntityEntry
|
A non-generic version of the DbEntityEntry<TEntity> 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.
|
|
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.
|
|
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>.
|
|
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.
|
|
DbPropertyEntry
|
A non-generic version of the DbPropertyEntry<TEntity, TProperty> 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.
|
|
DbPropertyValues
|
A collection of all the properties for an underlying entity or complex object.
|
|
DbProviderInfo
|
Stores information about a database provider.
|
|
DbQuery
|
Represents a non-generic LINQ to Entities query against a DbContext.
|
|
DbQuery<TResult>
|
Represents a LINQ to Entities query against a DbContext.
|
|
DbReferenceEntry
|
A non-generic version of the DbReferenceEntry<TEntity, TProperty> 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.
|
|
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.
|
|
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.
|
|
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.
|
|
DbUpdateException
|
Represents the exceptions encountered during a database update.
|
|
EdmMetadata
|
Obsolete. Represents an entity used to store metadata about an EDM in the database. |
|
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.
|
|
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. |
|
LocalDbConnectionFactory
|
Instances of this class are used to create DbConnection objects for SQL Server LocalDb based on a given database name or connection string.
|
|
ModelContainerConvention
|
This DbModelBuilder convention uses the name of the derived DbContext class as the container for the conceptual model built by Code First.
|
|
ModelNamespaceConvention
|
This DbModelBuilder convention uses the namespace of the derived DbContext class as the namespace of the conceptual model built by Code First.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|