Esempio n. 1
0
 /// <summary>
 /// Clones this NcoaHistory object to a new NcoaHistory 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 NcoaHistory Clone(this NcoaHistory source, bool deepCopy)
 {
     if (deepCopy)
     {
         return(source.Clone() as NcoaHistory);
     }
     else
     {
         var target = new NcoaHistory();
         target.CopyPropertiesFrom(source);
         return(target);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Copies the properties from another NcoaHistory object to this NcoaHistory object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this NcoaHistory target, NcoaHistory source)
 {
     target.Id = source.Id;
     target.AddressInvalidReason    = source.AddressInvalidReason;
     target.AddressStatus           = source.AddressStatus;
     target.FamilyId                = source.FamilyId;
     target.ForeignGuid             = source.ForeignGuid;
     target.ForeignKey              = source.ForeignKey;
     target.LocationId              = source.LocationId;
     target.MatchFlag               = source.MatchFlag;
     target.MoveDate                = source.MoveDate;
     target.MoveDistance            = source.MoveDistance;
     target.MoveType                = source.MoveType;
     target.NcoaNote                = source.NcoaNote;
     target.NcoaRunDateTime         = source.NcoaRunDateTime;
     target.NcoaType                = source.NcoaType;
     target.OriginalCity            = source.OriginalCity;
     target.OriginalPostalCode      = source.OriginalPostalCode;
     target.OriginalState           = source.OriginalState;
     target.OriginalStreet1         = source.OriginalStreet1;
     target.OriginalStreet2         = source.OriginalStreet2;
     target.PersonAliasId           = source.PersonAliasId;
     target.Processed               = source.Processed;
     target.UpdatedAddressType      = source.UpdatedAddressType;
     target.UpdatedBarcode          = source.UpdatedBarcode;
     target.UpdatedCity             = source.UpdatedCity;
     target.UpdatedCountry          = source.UpdatedCountry;
     target.UpdatedPostalCode       = source.UpdatedPostalCode;
     target.UpdatedState            = source.UpdatedState;
     target.UpdatedStreet1          = source.UpdatedStreet1;
     target.UpdatedStreet2          = source.UpdatedStreet2;
     target.CreatedDateTime         = source.CreatedDateTime;
     target.ModifiedDateTime        = source.ModifiedDateTime;
     target.CreatedByPersonAliasId  = source.CreatedByPersonAliasId;
     target.ModifiedByPersonAliasId = source.ModifiedByPersonAliasId;
     target.Guid      = source.Guid;
     target.ForeignId = source.ForeignId;
 }