protected virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { _context.Dispose(); } this.disposed = true; } }
public void Dispose() { _context.Dispose(); }
protected override void OnClosing(System.ComponentModel.CancelEventArgs e) { base.OnClosing(e); _context.Dispose(); }