Esempio n. 1
0
 /// <summary>
 ///     get list from redis caching server
 /// </summary>
 /// <typeparam name="T"></typeparam>
 public static List <T> GetAll <T>()
 {
     using (var redis = new RedisClient(Host))
     {
         IRedisTypedClient <T> redisObject = redis.As <T>();
         var            redisObjectName    = typeof(T).Name;
         IRedisList <T> listObject         = redisObject.Lists[redisObjectName];
         return(listObject.GetAll());
     }
 }
Esempio n. 2
0
 public IQueryable <TEntity> GetModel()
 {
     return(table.GetAll().AsQueryable());
 }
Esempio n. 3
0
 public IList <RegistryDataInfo> GetAllByInterface(string interfaceName)
 {
     return(_table.GetAll().Where(p => p.InterfaceName == interfaceName).ToList());
 }