Beispiel #1
0
 /// <summary>
 /// Copies the properties from another MetaPersonicxLifestageGroup object to this MetaPersonicxLifestageGroup object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this MetaPersonicxLifestageGroup target, MetaPersonicxLifestageGroup source)
 {
     target.Id                          = source.Id;
     target.Children                    = source.Children;
     target.Description                 = source.Description;
     target.DetailsUrl                  = source.DetailsUrl;
     target.ForeignGuid                 = source.ForeignGuid;
     target.ForeignKey                  = source.ForeignKey;
     target.HomeOwnership               = source.HomeOwnership;
     target.Income                      = source.Income;
     target.IncomeLevel                 = source.IncomeLevel;
     target.IncomeRank                  = source.IncomeRank;
     target.LifeStage                   = source.LifeStage;
     target.LifeStageLevel              = source.LifeStageLevel;
     target.LifestyleGroupCode          = source.LifestyleGroupCode;
     target.LifestyleGroupName          = source.LifestyleGroupName;
     target.MaritalStatus               = source.MaritalStatus;
     target.MeanAge                     = source.MeanAge;
     target.NetWorth                    = source.NetWorth;
     target.NetWorthLevel               = source.NetWorthLevel;
     target.NetworthRank                = source.NetworthRank;
     target.OrganizationHouseholdCount  = source.OrganizationHouseholdCount;
     target.OrganizationIndividualCount = source.OrganizationIndividualCount;
     target.PercentOrganization         = source.PercentOrganization;
     target.PercentUS                   = source.PercentUS;
     target.Summary                     = source.Summary;
     target.Urbanicity                  = source.Urbanicity;
     target.UrbanicityRank              = source.UrbanicityRank;
     target.CreatedDateTime             = source.CreatedDateTime;
     target.ModifiedDateTime            = source.ModifiedDateTime;
     target.CreatedByPersonAliasId      = source.CreatedByPersonAliasId;
     target.ModifiedByPersonAliasId     = source.ModifiedByPersonAliasId;
     target.Guid                        = source.Guid;
     target.ForeignId                   = source.ForeignId;
 }
Beispiel #2
0
 /// <summary>
 /// Clones this MetaPersonicxLifestageGroup object to a new MetaPersonicxLifestageGroup 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 MetaPersonicxLifestageGroup Clone(this MetaPersonicxLifestageGroup source, bool deepCopy)
 {
     if (deepCopy)
     {
         return(source.Clone() as MetaPersonicxLifestageGroup);
     }
     else
     {
         var target = new MetaPersonicxLifestageGroup();
         target.CopyPropertiesFrom(source);
         return(target);
     }
 }