/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">True if managed resources should be disposed; otherwise, false.</param> protected virtual void Dispose(bool disposing) { if (disposing) { BaseConnection.Dispose(); } }
protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
/// <summary> /// Disposes DbManager object with sub objects. /// </summary> public void Dispose() { try { if (pConn != null) { pConn.Dispose(); } } catch (Exception e) { } finally { pConn = null; } }
/// <summary> /// Dispose Objects /// </summary> public void Dispose() { baseConnection.Dispose(); }