Example #1
0
        /// <summary>
        /// Adds a binary definition.
        /// </summary>
        /// <param name="myBinaryPropertyPredefinition">The property definition that is going to be added.</param>
        /// <returns>The reference of the current object. (fluent interface).</returns>
        public VertexTypePredefinition AddBinaryProperty(BinaryPropertyPredefinition myBinaryPropertyPredefinition)
        {
            if (myBinaryPropertyPredefinition != null)
            {
                _attributes = (_attributes) ?? new List <AAttributePredefinition>();
                _attributes.Add(myBinaryPropertyPredefinition);
                _binaries++;
            }

            return(this);
        }
        /// <summary>
        /// Adds a binary definition.
        /// </summary>
        /// <param name="myBinaryPropertyPredefinition">The property definition that is going to be added.</param>
        /// <returns>The reference of the current object. (fluent interface).</returns>
        public VertexTypePredefinition AddBinaryProperty(BinaryPropertyPredefinition myBinaryPropertyPredefinition)
        {
            if (myBinaryPropertyPredefinition != null)
            {
                _attributes = (_attributes) ?? new List<AAttributePredefinition>();
                _attributes.Add(myBinaryPropertyPredefinition);
                _binaries++;
            }

            return this;
        }
 internal ServiceBinaryPropertyPredefinition(BinaryPropertyPredefinition myBinaryPropertyPredefinition) : base(myBinaryPropertyPredefinition)
 {
 }
 public BinaryPropertyPredefinition ToBinaryPropertyPredefinition()
 {
     var predef = new BinaryPropertyPredefinition(this.AttributeName, this.AttributeType);
     predef.SetComment(this.Comment);
     return predef;
 }