/// <summary> /// Copies the properties from another BenevolenceRequest object to this BenevolenceRequest object /// </summary> /// <param name="target">The target.</param> /// <param name="source">The source.</param> public static void CopyPropertiesFrom(this BenevolenceRequest target, BenevolenceRequest source) { target.Id = source.Id; target.CampusId = source.CampusId; target.CaseWorkerPersonAliasId = source.CaseWorkerPersonAliasId; target.CellPhoneNumber = source.CellPhoneNumber; target.ConnectionStatusValueId = source.ConnectionStatusValueId; target.Email = source.Email; target.FirstName = source.FirstName; target.ForeignGuid = source.ForeignGuid; target.ForeignKey = source.ForeignKey; target.GovernmentId = source.GovernmentId; target.HomePhoneNumber = source.HomePhoneNumber; target.LastName = source.LastName; target.LocationId = source.LocationId; target.ProvidedNextSteps = source.ProvidedNextSteps; target.RequestDateTime = source.RequestDateTime; target.RequestedByPersonAliasId = source.RequestedByPersonAliasId; target.RequestStatusValueId = source.RequestStatusValueId; target.RequestText = source.RequestText; target.ResultSummary = source.ResultSummary; target.WorkPhoneNumber = source.WorkPhoneNumber; target.CreatedDateTime = source.CreatedDateTime; target.ModifiedDateTime = source.ModifiedDateTime; target.CreatedByPersonAliasId = source.CreatedByPersonAliasId; target.ModifiedByPersonAliasId = source.ModifiedByPersonAliasId; target.Guid = source.Guid; target.ForeignId = source.ForeignId; }
/// <summary> /// Clones this BenevolenceRequest object to a new BenevolenceRequest 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 BenevolenceRequest Clone(this BenevolenceRequest source, bool deepCopy) { if (deepCopy) { return(source.Clone() as BenevolenceRequest); } else { var target = new BenevolenceRequest(); target.CopyPropertiesFrom(source); return(target); } }