public UniquePredefinition ToUniquePredefinition()
        {
            var uniquepredefinition = new UniquePredefinition();

            foreach (var Property in this.Properties)
            {
                uniquepredefinition.AddPropery(Property);
            }
            return(uniquepredefinition);
        }
Пример #2
0
        /// <summary>
        /// Adds a unique definition.
        /// </summary>
        /// <param name="myUniqueDefinition">The unique definition that is going to be added.</param>
        /// <returns>The reference of the current object. (fluent interface).</returns>
        public RequestAlterVertexType AddUnique(UniquePredefinition myUniqueDefinition)
        {
            if (myUniqueDefinition != null)
            {
                _toBeAddedUniques = (_toBeAddedUniques) ?? new List <UniquePredefinition>();
                _toBeAddedUniques.Add(myUniqueDefinition);
                AddUniqueCount++;
            }

            return(this);
        }
 internal ServiceUniquePredefinition(UniquePredefinition myUniquePredefinition)
 {
     this.Properties = myUniquePredefinition.Properties.ToList();
 }