System.Data.Entity.ModelConfiguration.Conventions
TOC
Collapse the table of content
Expand the table of content

System.Data.Entity.ModelConfiguration.Conventions Namespace

 

The System.Data.Entity.ModelConfiguration.Conventions namespace 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.

ClassDescription
System_CAPS_pubclassAssociationInverseDiscoveryConvention

Provides convention to detect navigation properties to be inverses of each other when only one pair of navigation properties exists between the related types.

System_CAPS_pubclassAttributeToColumnAnnotationConvention<TAttribute, TAnnotation>

A general purpose class for Code First conventions that read attributes from .NET properties and generate column annotations based on those attributes.

System_CAPS_pubclassAttributeToTableAnnotationConvention<TAttribute, TAnnotation>

A general purpose class for Code First conventions that read attributes from .NET types and generate table annotations based on those attributes.

System_CAPS_pubclassColumnAttributeConvention

Represents a convention to process instances of ColumnAttribute found on properties in the model.

System_CAPS_pubclassColumnOrderingConvention

Represents a convention to apply column ordering specified via T:System.ComponentModel.DataAnnotations.ColumnAttribute or the DbModelBuilder API.

System_CAPS_pubclassColumnOrderingConventionStrict

Convention to apply column ordering specified via T:System.ComponentModel.DataAnnotations.ColumnAttribute or the DbModelBuilder API. This convention throws if a duplicate configured column order is detected.

System_CAPS_pubclassComplexTypeAttributeConvention

Represents the convention to process instances of ComplexTypeAttribute found on types in the model.

System_CAPS_pubclassComplexTypeDiscoveryConvention

Represents a convention to configure a type as a complex type if it has no primary key, no mapped base type and no navigation properties.

System_CAPS_pubclassConcurrencyCheckAttributeConvention

Represents the convention to process instances of ConcurrencyCheckAttribute found on properties in the model.

System_CAPS_pubclassConvention

A convention that doesn't override configuration.

System_CAPS_pubclassDatabaseGeneratedAttributeConvention

Represents a convention to process instances of DatabaseGeneratedAttribute found on properties in the model.

System_CAPS_pubclassDecimalPropertyConvention

Convention to set precision to 18 and scale to 2 for decimal properties.

System_CAPS_pubclassDeclaredPropertyOrderingConvention

Represents a convention to move primary key properties to appear first.

System_CAPS_pubclassForeignKeyAssociationMultiplicityConvention

Represents a convention to distinguish between optional and required relationships based on CLR nullability of the foreign key property.

System_CAPS_pubclassForeignKeyDiscoveryConvention

Represents a base class for conventions that discover foreign key properties.

System_CAPS_pubclassForeignKeyIndexConvention

Represents a convention to introduce indexes for foreign keys.

System_CAPS_pubclassForeignKeyNavigationPropertyAttributeConvention

Represents a convention to process instances of ForeignKeyAttribute found on navigation properties in the model.

System_CAPS_pubclassForeignKeyPrimitivePropertyAttributeConvention

Represents a convention to process instances of ForeignKeyAttribute found on foreign key properties in the model.

System_CAPS_pubclassIdKeyDiscoveryConvention

Convention to detect primary key properties. Recognized naming patterns in order of precedence are: 1. 'Id' 2. [type name]Id Primary key detection is case insensitive.

System_CAPS_pubclassIndexAttributeConvention

A convention for discovering IndexAttribute attributes on properties and generating IndexAnnotation column annotations in the model.

System_CAPS_pubclassInversePropertyAttributeConvention

Represents a convention to process instances of InversePropertyAttribute found on properties in the model.

System_CAPS_pubclassKeyAttributeConvention

Convention to process instances of KeyAttribute found on properties in the model.

System_CAPS_pubclassKeyDiscoveryConvention

Represents a base class for conventions that discover primary key properties.

System_CAPS_pubclassManyToManyCascadeDeleteConvention

Convention to add a cascade delete to the join table from both tables involved in a many to many relationship.

System_CAPS_pubclassMappingInheritedPropertiesSupportConvention

Convention to ensure an invalid/unsupported mapping is not created when mapping inherited properties

System_CAPS_pubclassMaxLengthAttributeConvention

Represents a convention to process instances of MaxLengthAttribute found on properties in the model.

System_CAPS_pubclassNavigationPropertyNameForeignKeyDiscoveryConvention

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).

System_CAPS_pubclassNotMappedPropertyAttributeConvention

Represents a convention to process instances of NotMappedAttribute found on properties in the model.

System_CAPS_pubclassNotMappedTypeAttributeConvention

Represents a convention to process instances of NotMappedAttribute found on types in the model.

System_CAPS_pubclassOneToManyCascadeDeleteConvention

Provides a convention to enable cascade delete for any required relationships.

System_CAPS_pubclassOneToOneConstraintIntroductionConvention

Provides a convention to configure the primary key(s) of the dependent entity type as foreign key(s) in a one:one relationship.

System_CAPS_pubclassPluralizingEntitySetNameConvention

Represents a convention to set the entity set name to be a pluralized version of the entity type name.

System_CAPS_pubclassPluralizingTableNameConvention

Represents a convention to set the table name to be a pluralized version of the entity type name.

System_CAPS_pubclassPrimaryKeyNameForeignKeyDiscoveryConvention

Convention to discover foreign key properties whose names match the principal type primary key property name(s).

System_CAPS_pubclassPrimitivePropertyAttributeConfigurationConvention<TAttribute>

Base class for conventions that process CLR attributes found on primitive properties in the model.

System_CAPS_pubclassPropertyAttributeConfigurationConvention<TAttribute>

Base class for conventions that process CLR attributes found on properties of types in the model.

System_CAPS_pubclassPropertyMaxLengthConvention

Represents a convention to set a maximum length for properties whose type supports length facets. The default value is 128.

System_CAPS_pubclassRequiredNavigationPropertyAttributeConvention

Convention to process instances of RequiredAttribute found on navigation properties in the model.

System_CAPS_pubclassRequiredPrimitivePropertyAttributeConvention

Represents a convention to process instances of RequiredAttribute found on primitive properties in the model.

System_CAPS_pubclassSqlCePropertyMaxLengthConvention

Represents a convention to set a default maximum length of 4000 for properties whose type supports length facets when SqlCe is the provider.

System_CAPS_pubclassStoreGeneratedIdentityKeyConvention

Represents a convention to configure integer primary keys to be identity.

System_CAPS_pubclassStringLengthAttributeConvention

Represents a convention to process instances of StringLengthAttribute found on properties in the model.

System_CAPS_pubclassTableAttributeConvention

Represents a convention to process instances of TableAttribute found on types in the model.

System_CAPS_pubclassTimestampAttributeConvention

Represents a convention to process instances of TimestampAttribute found on properties in the model.

System_CAPS_pubclassTypeAttributeConfigurationConvention<TAttribute>

Base class for conventions that process CLR attributes found in the model.

System_CAPS_pubclassTypeNameForeignKeyDiscoveryConvention

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).

InterfaceDescription
System_CAPS_pubinterfaceIConceptualModelConvention<T>

A convention that operates on the conceptual section of the model after the model is created.

System_CAPS_pubinterfaceIConvention

Identifies conventions that can be added to or removed from a DbModelBuilder instance.

System_CAPS_pubinterfaceIStoreModelConvention<T>

A convention that operates on the database section of the model after the model is created.

Return to top
Show:
© 2016 Microsoft