/// <summary> /// Copies the properties from another AnalyticsDimFinancialAccount object to this AnalyticsDimFinancialAccount object /// </summary> /// <param name="target">The target.</param> /// <param name="source">The source.</param> public static void CopyPropertiesFrom(this AnalyticsDimFinancialAccount target, AnalyticsDimFinancialAccount source) { target.Id = source.Id; target.AccountId = source.AccountId; target.AccountType = source.AccountType; target.ActiveStatus = source.ActiveStatus; target.CampusName = source.CampusName; target.CampusShortCode = source.CampusShortCode; target.Count = source.Count; target.Description = source.Description; target.EndDate = source.EndDate; target.ForeignGuid = source.ForeignGuid; target.ForeignKey = source.ForeignKey; target.GlCode = source.GlCode; target.ImageBinaryFileId = source.ImageBinaryFileId; target.ImageUrl = source.ImageUrl; target.Name = source.Name; target.Order = source.Order; target.ParentAccountId = source.ParentAccountId; target.PublicDescription = source.PublicDescription; target.PublicName = source.PublicName; target.PublicStatus = source.PublicStatus; target.StartDate = source.StartDate; target.TaxStatus = source.TaxStatus; target.Url = source.Url; target.Guid = source.Guid; target.ForeignId = source.ForeignId; }
/// <summary> /// Clones this AnalyticsDimFinancialAccount object to a new AnalyticsDimFinancialAccount 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 AnalyticsDimFinancialAccount Clone(this AnalyticsDimFinancialAccount source, bool deepCopy) { if (deepCopy) { return(source.Clone() as AnalyticsDimFinancialAccount); } else { var target = new AnalyticsDimFinancialAccount(); target.CopyPropertiesFrom(source); return(target); } }
/// <summary> /// Clones this AnalyticsDimFinancialAccount object to a new AnalyticsDimFinancialAccount 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 AnalyticsDimFinancialAccount CloneWithoutIdentity(this AnalyticsDimFinancialAccount source) { var target = new AnalyticsDimFinancialAccount(); target.CopyPropertiesFrom(source); target.Id = 0; target.Guid = Guid.NewGuid(); target.ForeignKey = null; target.ForeignId = null; target.ForeignGuid = null; return(target); }