/// <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()); } }
public IQueryable <TEntity> GetModel() { return(table.GetAll().AsQueryable()); }
public IList <RegistryDataInfo> GetAllByInterface(string interfaceName) { return(_table.GetAll().Where(p => p.InterfaceName == interfaceName).ToList()); }