/// <summary> /// Adds a property to the vertex type definition /// </summary> /// <param name="myPropertyDefinition">The property definition that is going to be added</param> /// <returns>The reference of the current object. (fluent interface).</returns> public VertexTypePredefinition AddProperty(PropertyPredefinition myPropertyDefinition) { if (myPropertyDefinition != null) { _attributes = (_attributes) ?? new List<AttributePredefinition>(); _attributes.Add(myPropertyDefinition); _properties++; } return this; }
/// <summary> /// Adds a property to the vertex type definition /// </summary> /// <param name="myPropertyDefinition">The property definition that is going to be added</param> /// <returns>The reference of the current object. (fluent interface).</returns> public RequestAlterVertexType AddProperty(PropertyPredefinition myPropertyDefinition) { if (myPropertyDefinition != null) { _toBeAddedAttributes = (_toBeAddedAttributes) ?? new List<AttributePredefinition>(); _toBeAddedAttributes.Add(myPropertyDefinition); AddPropertyCount++; } return this; }