protected void Dispose(bool disposing) { if (disposing) { db.Dispose(); } }
protected override void DisposeCore() { if (dbContext != null) { dbContext.Dispose(); } }
protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
protected override void Dispose(bool disposing) //ODBACI db objekt od konstruktora gore, OVERRIDANA IZ APICONTROLLER KLASE, NASLJEDUJE NEKE VAZNE STVARI { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
protected override void Dispose(bool disposing) {//bellek temizleme işlemi yapılır if (disposing) { db.Dispose(); } base.Dispose(disposing); }
protected virtual void Dispose(bool disposing) { if (disposing) { if (DataContext != null) { DataContext.Dispose(); } } }
protected virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { db.Dispose(); } } this.disposed = true; }
/// <summary> /// Protected Virtual Dispose method /// </summary> /// <param name="disposing"></param> protected virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { Debug.WriteLine("UnitOfWork is being disposed"); _context.Dispose(); } } this.disposed = true; }
public void Dispose() { db.Dispose(); }