Export (0) Print
Expand All
Expand Minimize

System.Data.Entity.ModelConfiguration.Conventions Namespace

Entity Framework 5.0

Contains classes that describe a set of rules that are used to automatically configure a conceptual model based on class definitions when working with Code First. You can disable one or more of these default conventions by using the Conventions property.

  Class Description
Public class AssociationInverseDiscoveryConvention Convention to detect navigation properties to be inverses of each other when only one pair of navigation properties exists between the related types.
Public class ColumnAttributeConvention Convention to process instances of ColumnAttribute found on properties in the model.
Public class ColumnTypeCasingConvention Convention to convert any data types that were explicitly specified, by using data annotations or the DbModelBuilder API, to be lowercase.
Public class ComplexTypeAttributeConvention Convention to process instances of ComplexTypeAttribute found on types in the model.
Public class ComplexTypeDiscoveryConvention Convention to configure a type as a complex type if it has no primary key, no mapped base type, and no navigation properties.
Public class ConcurrencyCheckAttributeConvention Convention to process instances of ConcurrencyCheckAttribute found on properties in the model.
Public class DatabaseGeneratedAttributeConvention Convention to process instances of DatabaseGeneratedAttribute found on properties in the model.
Public class DecimalPropertyConvention Convention to set precision to 18 and scale to 2 for decimal properties.
Public class DeclaredPropertyOrderingConvention Convention to move primary key properties to appear first.
Public class ForeignKeyAssociationMultiplicityConvention Convention to distinguish between optional and required relationships based on CLR nullability of the foreign key property.
Public class ForeignKeyNavigationPropertyAttributeConvention Convention to process instances of ForeignKeyAttribute found on navigation properties in the model.
Public class ForeignKeyPrimitivePropertyAttributeConvention Convention to process instances of ForeignKeyAttribute found on foreign key properties in the model.
Public class IdKeyDiscoveryConvention Convention to detect primary key properties.
Public class InversePropertyAttributeConvention Convention to process instances of InversePropertyAttribute found on properties in the model.
Public class KeyAttributeConvention Convention to process instances of KeyAttribute found on properties in the model.
Public class ManyToManyCascadeDeleteConvention Convention to add a cascade delete to the join table from both tables involved in a many-to-many relationship.
Public class MappingInheritedPropertiesSupportConvention Ensures that mapping inherited properties does not create an invalid or unsupported mapping
Public class MaxLengthAttributeConvention Convention to process instances of MaxLengthAttribute found on properties in the model.
Public class NavigationPropertyNameForeignKeyDiscoveryConvention Convention to discover foreign key properties whose names are a combination of the dependent navigation property name and the principal type primary key property name(s).
Public class NotMappedPropertyAttributeConvention Convention to process instances of NotMappedAttribute found on properties in the model.
Public class NotMappedTypeAttributeConvention Convention to process instances of NotMappedAttribute found on types in the model.
Public class OneToManyCascadeDeleteConvention Convention to enable cascade delete for any required relationships.
Public class OneToOneConstraintIntroductionConvention Convention to configure the primary key(s) of the dependent entity type as foreign key(s) in a one-to-one relationship.
Public class PluralizingEntitySetNameConvention Convention to set the entity set name to be a pluralized version of the entity type name.
Public class PluralizingTableNameConvention Convention to set the table name to be a pluralized version of the entity type name.
Public class PrimaryKeyNameForeignKeyDiscoveryConvention Convention to discover foreign key properties whose names match the principal type primary key property name(s).
Public class PropertyMaxLengthConvention Convention to set default maximum lengths for property types that support length facets.
Public class RequiredNavigationPropertyAttributeConvention Convention to process instances of RequiredAttribute found on navigation properties in the model.
Public class RequiredPrimitivePropertyAttributeConvention Convention to process instances of RequiredAttribute found on primitive properties in the model.
Public class SqlCePropertyMaxLengthConvention Sets a default maximum length of 4000 for properties whose type supports length facets when SqlCe is the provider.
Public class StoreGeneratedIdentityKeyConvention Convention to configure integer primary keys to be identity.
Public class StringLengthAttributeConvention Convention to process instances of StringLengthAttribute found on properties in the model.
Public class TableAttributeConvention Convention to process instances of TableAttribute found on types in the model.
Public class TimestampAttributeConvention Convention to process instances of TimestampAttribute found on properties in the model.
Public class TypeNameForeignKeyDiscoveryConvention Convention to discover foreign key properties whose names are a combination of the principal type name and the principal type primary key property name(s).

  Interface Description
Public interface IConvention Identifies conventions that can be removed from a DbModelBuilder instance.
Show:
© 2014 Microsoft