Ejemplo n.º 1
0
        protected internal override ICollection <DBIndexSchema> InitIndexes()
        {
            List <DBIndexSchema> indexes = new List <DBIndexSchema>();

            foreach (MetadataIndexDefinition indexDefinition in this.ObjectSchemaAdapter.ClassDefinition.Indexes)
            {
                DBObjectIndexSchema objectIndex = new DBObjectIndexSchema(indexDefinition, this.ObjectSchemaAdapter);
                indexes.Add(objectIndex);
            }
            return(indexes);
        }
        internal DBObjectIndexColumnSchema(MetadataIndexColumnDefinition indexColumnDefinition, DBObjectIndexSchema objectIndexSchema)
            : base(objectIndexSchema)
        {
            if (indexColumnDefinition == null)
            {
                throw new ArgumentNullException("indexColumnDefinition");
            }
            if (objectIndexSchema == null)
            {
                throw new ArgumentNullException("objectIndexSchema");
            }

            this.IndexColumnDefinition = indexColumnDefinition;
            this.ObjectIndexSchema     = objectIndexSchema;
        }