コード例 #1
0
 /// <summary>
 /// Copies the properties from another FinancialPersonBankAccount object to this FinancialPersonBankAccount object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this FinancialPersonBankAccount target, FinancialPersonBankAccount source)
 {
     target.PersonId             = source.PersonId;
     target.AccountNumberSecured = source.AccountNumberSecured;
     target.Id   = source.Id;
     target.Guid = source.Guid;
 }
コード例 #2
0
 /// <summary>
 /// Clones this FinancialPersonBankAccount object to a new FinancialPersonBankAccount 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 FinancialPersonBankAccount Clone(this FinancialPersonBankAccount source, bool deepCopy)
 {
     if (deepCopy)
     {
         return(source.Clone() as FinancialPersonBankAccount);
     }
     else
     {
         var target = new FinancialPersonBankAccount();
         target.CopyPropertiesFrom(source);
         return(target);
     }
 }
コード例 #3
0
 /// <summary>
 /// Copies the properties from another FinancialPersonBankAccount object to this FinancialPersonBankAccount object
 /// </summary>
 /// <param name="target">The target.</param>
 /// <param name="source">The source.</param>
 public static void CopyPropertiesFrom(this FinancialPersonBankAccount target, FinancialPersonBankAccount source)
 {
     target.Id = source.Id;
     target.AccountNumberMasked     = source.AccountNumberMasked;
     target.AccountNumberSecured    = source.AccountNumberSecured;
     target.PersonAliasId           = source.PersonAliasId;
     target.CreatedDateTime         = source.CreatedDateTime;
     target.ModifiedDateTime        = source.ModifiedDateTime;
     target.CreatedByPersonAliasId  = source.CreatedByPersonAliasId;
     target.ModifiedByPersonAliasId = source.ModifiedByPersonAliasId;
     target.Guid      = source.Guid;
     target.ForeignId = source.ForeignId;
 }
        /// <summary>
        /// Gets the specified bank account record.
        /// </summary>
        /// <param name="routingNumber">The routing number.</param>
        /// <param name="accountNumber">The account number.</param>
        /// <returns></returns>
        public FinancialPersonBankAccount Get(string routingNumber, string accountNumber)
        {
            var encodedValue = FinancialPersonBankAccount.EncodeAccountNumber(routingNumber, accountNumber);

            return(this.Queryable().Where(a => a.AccountNumberSecured == encodedValue).FirstOrDefault());
        }