Esempio n. 1
0
        public RedisUnitOfWork(RedisDataContext context)
        {
            _disposedLists = false;
            _client        = context.Client();
            _typedClient   = _client.As <TEntity>();
            string type = typeof(TEntity).ToString();

            _storeKey  = RedisUtils.GetListKey(type, RedisOperation.Save);
            _removeKey = RedisUtils.GetListKey(type, RedisOperation.Delete);
        }
Esempio n. 2
0
 public RedisRepository(RedisDataContext context)
 {
     _client      = context.Client();
     _typedClient = _client.As <TEntity>();
     _type        = typeof(TEntity).ToString();
 }