internal ServicePropertyPredefinition(PropertyPredefinition myPropertyPredefinition) : base(myPropertyPredefinition)
 {
     this.IsIndexed = myPropertyPredefinition.IsIndexed;
     this.IsMandatory = myPropertyPredefinition.IsMandatory;
     this.IsUnique = myPropertyPredefinition.IsUnique;
     this.DefaultValue = myPropertyPredefinition.DefaultValue;
     this.Multiplicity = ConvertHelper.ToServicePropertyMultiplicity(myPropertyPredefinition.Multiplicity);
 }
示例#2
0
        /// <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 <AAttributePredefinition>();
                _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 VertexTypePredefinition AddProperty(PropertyPredefinition myPropertyDefinition)
        {
            if (myPropertyDefinition != null)
            {
                _attributes = (_attributes) ?? new List<AAttributePredefinition>();
                _attributes.Add(myPropertyDefinition);
                _properties++;
            }

            return this;
        }