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); }