private void Dispose(bool disposing, AcmeDbContext dbCtx) { if (!this.disposed) { if (disposing) { dbCtx.Dispose(); } } this.disposed = true; }
protected virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { _dbContext.Dispose(); } } this.disposed = true; }