Example #1
0
        /// <summary>
        /// Creates a deep copy of the <see cref="WorkHistory"/>.
        /// </summary>
        /// <returns>A deep copy of the <see cref="WorkHistory"/>.</returns>
        public override object Clone()
        {
            var clone = new WorkHistory();

            clone.CopyFrom(this);
            return(clone);
        }
Example #2
0
        /// <summary>
        /// Performs a copy from another <see cref="WorkHistory"/> updating this instance.
        /// </summary>
        /// <param name="from">The <see cref="WorkHistory"/> to copy from.</param>
        public void CopyFrom(WorkHistory from)
        {
            CopyFrom((EntityBase)from);
            this.PersonId  = from.PersonId;
            this.Name      = from.Name;
            this.StartDate = from.StartDate;
            this.EndDate   = from.EndDate;

            this.OnAfterCopyFrom(from);
        }
Example #3
0
 partial void OnAfterCopyFrom(WorkHistory from);