protected override void DisposeCore() { if (dbContext != null) { dbContext.Dispose(); } }
protected override void Dispose(bool disposing) { if (disposing) { context.Dispose(); } base.Dispose(disposing); }
private void Dispose(bool disposing) { if (Context != null && !_disposed && disposing) { Context.Dispose(); } _disposed = true; }
protected virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { _databaseContext.Dispose(); } } this.disposed = true; }
public void Dispose() { dataContext.Dispose(); }
public void Dispose() { _context.Database.EnsureDeleted(); _context.Dispose(); }
protected override void OnClosing(System.ComponentModel.CancelEventArgs e) { base.OnClosing(e); context.Dispose(); thread.Abort(); }
public void Dispose() { _context?.Dispose(); }