/// <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); }
/// <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); }
partial void OnAfterCopyFrom(WorkHistory from);