/// <summary> /// Deprecated Method for adding a new object to the transferActions EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotransferActions(transferAction transferAction) { base.AddObject("transferActions", transferAction); }
private void RecordInvoiceTransferTransactions(List<transaction> txns, int transferID, projectEnums.transferStatus transferStat) { using (var ctx = new accountingEntities()) { //Create Payment Action var transferAction = new transferAction() { transferID = transferID, transferStatusID = (int)transferStat }; ctx.transferActions.AddObject(transferAction); ctx.SaveChanges(); //Record Pyament Action TXNS foreach (var txn in txns) { var NewsysActionTxn = new sysActionTransaction() { sysActionID = -1, transactionID = txn.ID }; ctx.sysActionTransactions.AddObject(NewsysActionTxn); ctx.SaveChanges(); } } }
/// <summary> /// Create a new transferAction object. /// </summary> /// <param name="id">Initial value of the ID property.</param> public static transferAction CreatetransferAction(global::System.Int32 id) { transferAction transferAction = new transferAction(); transferAction.ID = id; return transferAction; }