示例#1
0
        /// <summary>
        /// Sets the alternate version of the <see cref="BusinessObject"/>.
        /// </summary>
        /// <param name="alternate"><see cref="BusinessObject"/> that is to be considered as the alternate one.</param>
        public override void SetAlternateVersion(IBusinessObject alternate)
        {
            base.SetAlternateVersion(alternate);

            ItemRelation alternateItemRelation = (ItemRelation)alternate;

            if (this.Attributes != null)
            {
                this.Attributes.SetAlternateVersion(alternateItemRelation.Attributes);
            }
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of <see cref="ItemRelationAttrValue"/> class with a specified <see cref="ItemRelation"/> to attach to.
 /// </summary>
 /// <param name="parent"><see cref="Item"/> to attach to.</param>
 public ItemRelationAttrValues(ItemRelation parent)
     : base(parent, "relationAttribute")
 {
 }
示例#3
0
        }                                                                   //for save object reflection purposes

        /// <summary>
        /// Initializes a new instance of the <see cref="ItemRelationAttrValue"/> class with a specified xml root element.
        /// </summary>
        /// <param name="parent">Parent <see cref="ItemRelation"/>.</param>
        public ItemRelationAttrValue(ItemRelation parent)
            : base(parent)
        {
            this.Value = new XElement("value");
        }