protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
public virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { db.Dispose(); } this.disposed = true; } }
public void Dispose() { context.Dispose(); if (taskRep != null) { taskRep.Dispose(); } if (emplRep != null) { emplRep.Dispose(); } if (departRep != null) { departRep.Dispose(); } if (deprtmEmplRep != null) { deprtmEmplRep.Dispose(); } GC.SuppressFinalize(this); }
public void Dispose() { _context.Dispose(); }
public void Dispose() { _labContext.Dispose(); }
public void Dispose() { db.Dispose(); GC.SuppressFinalize(this); }