Beispiel #1
0
 /// <summary>
 /// Copies the properties from another FinancialScheduledTransactionDetail object to this FinancialScheduledTransactionDetail object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this FinancialScheduledTransactionDetail target, FinancialScheduledTransactionDetail source)
 {
     target.ScheduledTransactionId = source.ScheduledTransactionId;
     target.AccountId    = source.AccountId;
     target.Amount       = source.Amount;
     target.Summary      = source.Summary;
     target.EntityTypeId = source.EntityTypeId;
     target.EntityId     = source.EntityId;
     target.Id           = source.Id;
     target.Guid         = source.Guid;
 }
Beispiel #2
0
 /// <summary>
 /// Clones this FinancialScheduledTransactionDetail object to a new FinancialScheduledTransactionDetail 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 FinancialScheduledTransactionDetail Clone(this FinancialScheduledTransactionDetail source, bool deepCopy)
 {
     if (deepCopy)
     {
         return(source.Clone() as FinancialScheduledTransactionDetail);
     }
     else
     {
         var target = new FinancialScheduledTransactionDetail();
         target.CopyPropertiesFrom(source);
         return(target);
     }
 }
Beispiel #3
0
 /// <summary>
 /// Copies the properties from another FinancialScheduledTransactionDetail object to this FinancialScheduledTransactionDetail object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this FinancialScheduledTransactionDetail target, FinancialScheduledTransactionDetail source)
 {
     target.Id                      = source.Id;
     target.AccountId               = source.AccountId;
     target.Amount                  = source.Amount;
     target.EntityId                = source.EntityId;
     target.EntityTypeId            = source.EntityTypeId;
     target.ScheduledTransactionId  = source.ScheduledTransactionId;
     target.Summary                 = source.Summary;
     target.CreatedDateTime         = source.CreatedDateTime;
     target.ModifiedDateTime        = source.ModifiedDateTime;
     target.CreatedByPersonAliasId  = source.CreatedByPersonAliasId;
     target.ModifiedByPersonAliasId = source.ModifiedByPersonAliasId;
     target.Guid                    = source.Guid;
     target.ForeignId               = source.ForeignId;
 }