protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing) { restaurantDb.Dispose(); } base.Dispose(disposing); }
public virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { Db.Dispose(); } this.disposed = true; } }
public void Dispose() { pcontext.Dispose(); }
public void Dispose() { ctx.Dispose(); }
protected override void Dispose(bool disposing) { _context.Dispose(); }
public void Dispose() { _dbContext?.Dispose(); }