/// <summary> /// Releases the allocated resources for this context. /// </summary> public void Dispose() { if (_holidaysContext != null) { _holidaysContext.Dispose(); } }
private void Dispose(bool disposing) { try { if (!_disposed) { if (disposing) { DbContext.Dispose(); } } } catch (Exception ex) { throw ex; } _disposed = true; }
public void Dispose() { _context.Dispose(); }
public void Dispose() { Db.Dispose(); GC.SuppressFinalize(this); }