protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
private void Dispose(bool disposing) { if (disposing) { if (_context != null) { _context.Dispose(); _context = null; } } }
protected virtual void Dispose(bool disposing) { if (!disposed) { if (disposing) { _context.Dispose(); } } disposed = true; }
protected virtual void Dispose(bool dispsing) { if (!this.disposed) { if (dispsing) { context.Dispose(); } } disposed = true; }
private bool disposedValue = false; // To detect redundant calls protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { context.Dispose(); } disposedValue = true; } }
public void Dispose() { _context.Database.EnsureDeleted(); _context.Dispose(); }
public void Dispose() { context.Dispose(); }
public void Dispose() { Db.Dispose(); GC.SuppressFinalize(this); }