/// <summary> /// Clones this WorkflowActionFormAttribute object to a new WorkflowActionFormAttribute object /// </summary> /// <param name="source">The source.</param> /// <param name="deepCopy">if set to <c>true</c> a deep copy is made. If false, only the basic entity properties are copied.</param> /// <returns></returns> public static WorkflowActionFormAttribute Clone(this WorkflowActionFormAttribute source, bool deepCopy) { if (deepCopy) { return(source.Clone() as WorkflowActionFormAttribute); } else { var target = new WorkflowActionFormAttribute(); target.CopyPropertiesFrom(source); return(target); } }
/// <summary> /// Copies the properties from another WorkflowActionFormAttribute object to this WorkflowActionFormAttribute object /// </summary> /// <param name="target">The target.</param> /// <param name="source">The source.</param> public static void CopyPropertiesFrom(this WorkflowActionFormAttribute target, WorkflowActionFormAttribute source) { target.Id = source.Id; target.AttributeId = source.AttributeId; target.HideLabel = source.HideLabel; target.IsReadOnly = source.IsReadOnly; target.IsRequired = source.IsRequired; target.IsVisible = source.IsVisible; target.Order = source.Order; target.PostHtml = source.PostHtml; target.PreHtml = source.PreHtml; target.WorkflowActionFormId = source.WorkflowActionFormId; target.CreatedDateTime = source.CreatedDateTime; target.ModifiedDateTime = source.ModifiedDateTime; target.CreatedByPersonAliasId = source.CreatedByPersonAliasId; target.ModifiedByPersonAliasId = source.ModifiedByPersonAliasId; target.Guid = source.Guid; target.ForeignId = source.ForeignId; }