public void Insert(int PaymentsKey,long? SettlementKey,DateTime InitiatedDate,string CcTradeid,DateTime? SettlementDate,DateTime? FundsreceivedDate,DateTime? WithdrawlsentDate,string CcPaymentid)
        {
            CurrencyCloudTrade item = new CurrencyCloudTrade();

            item.PaymentsKey = PaymentsKey;

            item.SettlementKey = SettlementKey;

            item.InitiatedDate = InitiatedDate;

            item.CcTradeid = CcTradeid;

            item.SettlementDate = SettlementDate;

            item.FundsreceivedDate = FundsreceivedDate;

            item.WithdrawlsentDate = WithdrawlsentDate;

            item.CcPaymentid = CcPaymentid;

            item.Save(UserName);
        }
        public void Update(long CurrencycloudTradeKey,int PaymentsKey,long? SettlementKey,DateTime InitiatedDate,string CcTradeid,DateTime? SettlementDate,DateTime? FundsreceivedDate,DateTime? WithdrawlsentDate,string CcPaymentid)
        {
            CurrencyCloudTrade item = new CurrencyCloudTrade();
            item.MarkOld();
            item.IsLoaded = true;

            item.CurrencycloudTradeKey = CurrencycloudTradeKey;

            item.PaymentsKey = PaymentsKey;

            item.SettlementKey = SettlementKey;

            item.InitiatedDate = InitiatedDate;

            item.CcTradeid = CcTradeid;

            item.SettlementDate = SettlementDate;

            item.FundsreceivedDate = FundsreceivedDate;

            item.WithdrawlsentDate = WithdrawlsentDate;

            item.CcPaymentid = CcPaymentid;

            item.Save(UserName);
        }