public async Task CreateAsync(Transaction transaction) { await context.Transactions.AddAsync(transaction); await context.SaveChangesAsync(); TransactionCreatedEventArgs args = new TransactionCreatedEventArgs { Transaction = transaction }; TransactionCreated?.Invoke(this, args); }
internal virtual void OnTransactionCreated(RemoteDbTransaction connection) { TransactionCreated?.Invoke(connection); }