public void Disposing(DbTransaction transaction, DbTransactionInterceptionContext interceptionContext) { var context = EFProfilerContextProvider.GetLoggedDbTransaction(transaction, interceptionContext); _profiler.TransactionDisposing(transaction, context); }
protected override void Dispose(bool disposing) { _profiler.TransactionDisposing(InnerTransaction, NHProfilerContextProvider.GetLoggedDbTransaction(InnerTransaction, _connectionId)); if (disposing && InnerTransaction != null) { InnerTransaction.Dispose(); } InnerTransaction = null; _connection = null; base.Dispose(disposing); }