static V2ConventionSet() { var conventions = new List<IConvention>(V1ConventionSet.Conventions); var columnOrderingConventionIndex = conventions.FindIndex(c => c.GetType() == typeof(ColumnOrderingConvention)); Contract.Assert(columnOrderingConventionIndex != -1); conventions[columnOrderingConventionIndex] = new ColumnOrderingConventionStrict(); _conventions = conventions.ToArray(); }
static V2ConventionSet() { var conventions = new List <IConvention>(V1ConventionSet.Conventions); var columnOrderingConventionIndex = conventions.FindIndex(c => c.GetType() == typeof(ColumnOrderingConvention)); Debug.Assert(columnOrderingConventionIndex != -1); conventions[columnOrderingConventionIndex] = new ColumnOrderingConventionStrict(); _conventions = conventions.ToArray(); }
static V2ConventionSet() { var dbConventions = new List <IConvention>(V1ConventionSet.Conventions.StoreModelConventions); var columnOrderingConventionIndex = dbConventions.FindIndex(c => c.GetType() == typeof(ColumnOrderingConvention)); Debug.Assert(columnOrderingConventionIndex != -1); dbConventions[columnOrderingConventionIndex] = new ColumnOrderingConventionStrict(); _conventions = new ConventionSet( V1ConventionSet.Conventions.ConfigurationConventions, V1ConventionSet.Conventions.ConceptualModelConventions, V1ConventionSet.Conventions.ConceptualToStoreMappingConventions, dbConventions); }
static V2ConventionSet() { var dbConventions = new List<IConvention>(V1ConventionSet.Conventions.StoreModelConventions); var columnOrderingConventionIndex = dbConventions.FindIndex(c => c.GetType() == typeof(ColumnOrderingConvention)); Debug.Assert(columnOrderingConventionIndex != -1); dbConventions[columnOrderingConventionIndex] = new ColumnOrderingConventionStrict(); _conventions = new ConventionSet( V1ConventionSet.Conventions.ConfigurationConventions, V1ConventionSet.Conventions.ConceptualModelConventions, V1ConventionSet.Conventions.ConceptualToStoreMappingConventions, dbConventions); }