/// <summary> /// Clones this GroupMemberWorkflowTrigger object to a new GroupMemberWorkflowTrigger 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 GroupMemberWorkflowTrigger Clone(this GroupMemberWorkflowTrigger source, bool deepCopy) { if (deepCopy) { return(source.Clone() as GroupMemberWorkflowTrigger); } else { var target = new GroupMemberWorkflowTrigger(); target.CopyPropertiesFrom(source); return(target); } }
/// <summary> /// Clones this GroupMemberWorkflowTrigger object to a new GroupMemberWorkflowTrigger object with default values for the properties in the Entity and Model base classes. /// </summary> /// <param name="source">The source.</param> /// <returns></returns> public static GroupMemberWorkflowTrigger CloneWithoutIdentity(this GroupMemberWorkflowTrigger source) { var target = new GroupMemberWorkflowTrigger(); target.CopyPropertiesFrom(source); target.Id = 0; target.Guid = Guid.NewGuid(); target.ForeignKey = null; target.ForeignId = null; target.ForeignGuid = null; return(target); }
/// <summary> /// Copies the properties from another GroupMemberWorkflowTrigger object to this GroupMemberWorkflowTrigger object /// </summary> /// <param name="target">The target.</param> /// <param name="source">The source.</param> public static void CopyPropertiesFrom(this GroupMemberWorkflowTrigger target, GroupMemberWorkflowTrigger source) { target.Id = source.Id; target.ForeignGuid = source.ForeignGuid; target.ForeignKey = source.ForeignKey; target.GroupId = source.GroupId; target.GroupTypeId = source.GroupTypeId; target.IsActive = source.IsActive; target.Name = source.Name; target.Order = source.Order; target.TriggerType = source.TriggerType; target.TypeQualifier = source.TypeQualifier; target.WorkflowName = source.WorkflowName; target.WorkflowTypeId = source.WorkflowTypeId; target.Guid = source.Guid; target.ForeignId = source.ForeignId; }