Beispiel #1
0
 /// <summary>
 /// Clones this PersonDuplicate object to a new PersonDuplicate 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 PersonDuplicate Clone(this PersonDuplicate source, bool deepCopy)
 {
     if (deepCopy)
     {
         return(source.Clone() as PersonDuplicate);
     }
     else
     {
         var target = new PersonDuplicate();
         target.CopyPropertiesFrom(source);
         return(target);
     }
 }
 /// <summary>
 /// Copies the properties from another PersonDuplicate object to this PersonDuplicate object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this PersonDuplicate target, PersonDuplicate source)
 {
     target.Id       = source.Id;
     target.Capacity = source.Capacity;
     target.DuplicatePersonAliasId    = source.DuplicatePersonAliasId;
     target.IgnoreUntilScoreChanges   = source.IgnoreUntilScoreChanges;
     target.IsConfirmedAsNotDuplicate = source.IsConfirmedAsNotDuplicate;
     target.PersonAliasId             = source.PersonAliasId;
     target.Score                   = source.Score;
     target.ScoreDetail             = source.ScoreDetail;
     target.TotalCapacity           = source.TotalCapacity;
     target.CreatedDateTime         = source.CreatedDateTime;
     target.ModifiedDateTime        = source.ModifiedDateTime;
     target.CreatedByPersonAliasId  = source.CreatedByPersonAliasId;
     target.ModifiedByPersonAliasId = source.ModifiedByPersonAliasId;
     target.Guid      = source.Guid;
     target.ForeignId = source.ForeignId;
 }