/// <summary> /// Release the resources held by this object, and close the cursor if /// it is still open. /// </summary> public void Dispose() { try { if (isOpen) { Close(); } } catch { /* * Errors here are likely because our dbc has been closed out * from under us. Not much we can do, just move on. */ } dbc.Dispose(); GC.SuppressFinalize(this); }
protected override void Dispose(bool disposing) { _context.Dispose(); }