/// <inheritdoc/> public override void Close() { if (InnerConnection != null) { InnerConnection.Close(); } }
/// <inheritdoc/> protected override void Dispose(bool disposing) { try { if (disposing) { if (InnerTransaction != null) { if (OwnedTransaction) { InnerTransaction.Dispose(); } InnerTransaction = null; } if (InnerConnection != null) { InnerConnection.Close(); InnerConnection = null; } } } finally { base.Dispose(disposing); } }
/// <summary> /// Close DB connection /// </summary> public override void Dispose() { if (InnerConnection != null && InnerConnection.State != ConnectionState.Closed) { InnerConnection.Close(); } if (_dict != null) { _dict = null; } }
protected override void Dispose(bool disposing) { if (disposing) { if (InnerConnection.State == ConnectionState.Open) { InnerConnection.Close(); } InnerConnection.Dispose(); } GC.SuppressFinalize(this); }
public override void Close() { InnerConnection.Close(); }
public override void Close() { InnerConnection.Close(); NotifyClosing(); }
public override void Close() { _profiler.ConnectionClosed(InnerConnection, NHProfilerContextProvider.GetLoggedDbConnection(InnerConnection)); InnerConnection.Close(); }