Ejemplo n.º 1
0
        public IndexPredefinition ToIndexPredefinition()
        {
            IndexPredefinition IndexPreDef = new IndexPredefinition(this.Name, this.VertexTypeName);
            IndexPreDef.SetComment(this.Comment);
            IndexPreDef.SetEdition(this.Edition);
            IndexPreDef.SetIndexType(this.IndexTypeName);
            if (this.IndexOptions != null)
            {
                IndexPreDef.AddOptions(this.IndexOptions);
            }

            if (this.Properties != null)
            {
                foreach (var Property in this.Properties)
                {
                    IndexPreDef.AddProperty(Property);
                }
            }

            IndexPreDef.SetVertexType(this.VertexTypeName);

            return IndexPreDef;
        }