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