コード例 #1
0
        public void RemoveTransactionFromBudget(Guid transactionId, Guid budgetId)
        {
            var relationship = new BudgetToTransaction { TransactionId = transactionId, BudgetId = budgetId };

            db.Delete(relationship);
        }
コード例 #2
0
        public void AddTransactionToBudget(Guid transactionId, Guid budgetId)
        {
            var relationship = new BudgetToTransaction { TransactionId = transactionId, BudgetId = budgetId };

            db.Insert(relationship);
        }