/src/EntityFramework/ModelConfiguration/Conventions/Sets/V1ConventionSet.cs
# · C# · 57 lines · 52 code · 2 blank · 3 comment · 0 complexity · 43f0c8d8a01f51a8ec609b93da517571 MD5 · raw file
- namespace System.Data.Entity.ModelConfiguration.Conventions.Sets
- {
- using System.Diagnostics.CodeAnalysis;
-
- [SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")]
- internal static class V1ConventionSet
- {
- private static readonly IConvention[] _conventions
- = new IConvention[]
- {
- // Type Configuration
- new NotMappedTypeAttributeConvention(),
- new ComplexTypeAttributeConvention(),
- new TableAttributeConvention(),
- // Property Configuration
- new NotMappedPropertyAttributeConvention(),
- new KeyAttributeConvention(),
- new RequiredPrimitivePropertyAttributeConvention(),
- new RequiredNavigationPropertyAttributeConvention(),
- new TimestampAttributeConvention(),
- new ConcurrencyCheckAttributeConvention(),
- new DatabaseGeneratedAttributeConvention(),
- new MaxLengthAttributeConvention(),
- new StringLengthAttributeConvention(),
- new ColumnAttributeConvention(),
- new InversePropertyAttributeConvention(),
- new ForeignKeyPrimitivePropertyAttributeConvention(),
- // EDM
- new IdKeyDiscoveryConvention(),
- new AssociationInverseDiscoveryConvention(),
- new ForeignKeyNavigationPropertyAttributeConvention(),
- new OneToOneConstraintIntroductionConvention(),
- new NavigationPropertyNameForeignKeyDiscoveryConvention(),
- new PrimaryKeyNameForeignKeyDiscoveryConvention(),
- new TypeNameForeignKeyDiscoveryConvention(),
- new ForeignKeyAssociationMultiplicityConvention(),
- new OneToManyCascadeDeleteConvention(),
- new ComplexTypeDiscoveryConvention(),
- new StoreGeneratedIdentityKeyConvention(),
- new PluralizingEntitySetNameConvention(),
- new DeclaredPropertyOrderingConvention(),
- new PluralizingTableNameConvention(),
- new ColumnOrderingConvention(),
- new ColumnTypeCasingConvention(),
- new SqlCePropertyMaxLengthConvention(),
- new PropertyMaxLengthConvention(),
- new DecimalPropertyConvention(),
- new ManyToManyCascadeDeleteConvention(),
- new MappingInheritedPropertiesSupportConvention()
- };
-
- public static IConvention[] Conventions
- {
- get { return _conventions; }
- }
- }
- }