コード例 #1
0
 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 VertexTypePredefinition AddUnique(UniquePredefinition myUniqueDefinition)
        {
            if (myUniqueDefinition != null)
            {
                _uniques = (_uniques) ?? new List <UniquePredefinition>();
                _uniques.Add(myUniqueDefinition);
            }

            return(this);
        }
コード例 #3
0
 internal ServiceUniquePredefinition(UniquePredefinition myUniquePredefinition)
 {
     this.Properties = myUniquePredefinition.Properties.ToList();
 }
コード例 #4
0
ファイル: RequestAlterVertexType.cs プロジェクト: cosh/sones
        /// <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;
        }
コード例 #5
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 VertexTypePredefinition AddUnique(UniquePredefinition myUniqueDefinition)
        {
            if (myUniqueDefinition != null)
            {
                _uniques = (_uniques) ?? new List<UniquePredefinition>();
                _uniques.Add(myUniqueDefinition);
            }

            return this;
        }