예제 #1
0
 /// <summary>
 /// Clones this MetaPersonicxLifestageCluster object to a new MetaPersonicxLifestageCluster 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 MetaPersonicxLifestageCluster Clone(this MetaPersonicxLifestageCluster source, bool deepCopy)
 {
     if (deepCopy)
     {
         return(source.Clone() as MetaPersonicxLifestageCluster);
     }
     else
     {
         var target = new MetaPersonicxLifestageCluster();
         target.CopyPropertiesFrom(source);
         return(target);
     }
 }
예제 #2
0
 /// <summary>
 /// Copies the properties from another MetaPersonicxLifestageCluster object to this MetaPersonicxLifestageCluster object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this MetaPersonicxLifestageCluster target, MetaPersonicxLifestageCluster 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.LifestyleClusterCode          = source.LifestyleClusterCode;
     target.LifestyleClusterName          = source.LifestyleClusterName;
     target.MaritalStatus                 = source.MaritalStatus;
     target.MeanAge                       = source.MeanAge;
     target.MetaPersonicxLifestyleGroupId = source.MetaPersonicxLifestyleGroupId;
     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;
 }