/// <summary>
 /// Clones this AnalyticsSourceFamilyHistorical object to a new AnalyticsSourceFamilyHistorical 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 AnalyticsSourceFamilyHistorical Clone(this AnalyticsSourceFamilyHistorical source, bool deepCopy)
 {
     if (deepCopy)
     {
         return(source.Clone() as AnalyticsSourceFamilyHistorical);
     }
     else
     {
         var target = new AnalyticsSourceFamilyHistorical();
         target.CopyPropertiesFrom(source);
         return(target);
     }
 }
        /// <summary>
        /// Clones this AnalyticsSourceFamilyHistorical object to a new AnalyticsSourceFamilyHistorical 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 AnalyticsSourceFamilyHistorical CloneWithoutIdentity(this AnalyticsSourceFamilyHistorical source)
        {
            var target = new AnalyticsSourceFamilyHistorical();

            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 AnalyticsSourceFamilyHistorical object to this AnalyticsSourceFamilyHistorical object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this AnalyticsSourceFamilyHistorical target, AnalyticsSourceFamilyHistorical source)
 {
     target.Id                       = source.Id;
     target.AdultCount               = source.AdultCount;
     target.CampusId                 = source.CampusId;
     target.ChildCount               = source.ChildCount;
     target.ConnectionStatus         = source.ConnectionStatus;
     target.Count                    = source.Count;
     target.CurrentRowIndicator      = source.CurrentRowIndicator;
     target.EffectiveDate            = source.EffectiveDate;
     target.ExpireDate               = source.ExpireDate;
     target.FamilyId                 = source.FamilyId;
     target.FamilyTitle              = source.FamilyTitle;
     target.ForeignGuid              = source.ForeignGuid;
     target.ForeignKey               = source.ForeignKey;
     target.HeadOfHouseholdPersonKey = source.HeadOfHouseholdPersonKey;
     target.IsEra                    = source.IsEra;
     target.IsFamilyActive           = source.IsFamilyActive;
     target.MailingAddressLocationId = source.MailingAddressLocationId;
     target.MappedAddressLocationId  = source.MappedAddressLocationId;
     target.Name                     = source.Name;
     target.Guid                     = source.Guid;
     target.ForeignId                = source.ForeignId;
 }