public ServiceIndexDefinition(IIndexDefinition myIndexDefinition)
 {
     this.Name = myIndexDefinition.Name;
     this.ID = myIndexDefinition.ID;
     this.IndexTypeName = myIndexDefinition.IndexTypeName;
     this.Edition = myIndexDefinition.Edition;
     this.IsUserdefined = myIndexDefinition.IsUserdefined;
     this.IndexedProperties = myIndexDefinition.IndexedProperties.Select(x => x.Name).ToList();
     this.VertexType = new ServiceVertexType(myIndexDefinition.VertexType);
     this.SourceIndex = (myIndexDefinition.SourceIndex == null) ? null : new ServiceIndexDefinition(myIndexDefinition.SourceIndex);
     this.IsRange = myIndexDefinition.IsRange;
     this.IsVersioned = myIndexDefinition.IsVersioned;
 }
 public ServiceUniqueDefinition(IUniqueDefinition myUniqueDefinition)
 {
     this.DefiningVertexType = new ServiceVertexType(myUniqueDefinition.DefiningVertexType);
     this.UniquePropertyDefinition = myUniqueDefinition.UniquePropertyDefinitions.Select(x => new ServicePropertyDefinition(x)).ToList();
     this.CorrespondingIndex = new ServiceIndexDefinition(myUniqueDefinition.CorrespondingIndex);
 }