/// <summary> /// Invoked when disposing or finalizing this instance. /// </summary> /// <param name="disposing">True if the object is being disposed, false otherwise.</param> protected virtual void OnDispose(bool disposing) { if (disposing) { try { if (_Transaction != null && !_Transaction.IsDisposed) { _Transaction.Abort(); _Transaction.Dispose(); } } catch { } try { if (IsOpen) { Close(); } } catch { } } _Engine = null; _Transaction = null; _IsDisposed = true; }
/// <summary> /// Invoked when disposing or finalizing this instance. /// </summary> /// <param name="disposing">True if the object is being disposed, false otherwise.</param> protected virtual void OnDispose(bool disposing) { if (disposing) { try { if (_Transaction != null && !_Transaction.IsDisposed) { _Transaction.Abort(); _Transaction.Dispose(); } } catch { } try { if (IsOpen) Close(); } catch { } } _Engine = null; _Transaction = null; _IsDisposed = true; }