protected virtual void Dispose(bool disposing) { if (!_isDisposed) { if (disposing) { _context.Dispose(); } _context = null; _isDisposed = true; } }
public RepositoryBase() { _context = new DbdItDbContext(); _entitySet = _context.Set <T>(); }