Exemplo n.º 1
0
        public void Delete(string accessToken)
        {
            var token = _dbContext.Query <AccessToken>().FirstOrDefault(x => x.Token == accessToken);

            if (token != null && !IsNonExpiring(token))
            {
                _dbContext.Remove(token);
                if (_cache != null)
                {
                    _cache.Remove(accessToken);
                }
            }
        }
        public void Remove(int id)
        {
            var entity = _dbContext.Find <DatabaseDetails>(id);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Exemplo n.º 3
0
        public void Remove(Guid id)
        {
            var entity = _dbContext.Find <TaskInstance>(id);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Exemplo n.º 4
0
        public void Remove(Guid id)
        {
            var entity = _dbContext.Find <UpdateDetails>(id);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }