예제 #1
0
    public List <TAlias> LoadCache(Connection conn, string order)
    {
        List <TAlias> cache  = new List <TAlias>();
        SqlSelect     select = new SqlSelect(Table, null);

        if (order != null)
        {
            select.AddOrder(order);
        }

        LoadArray(conn, select, cache);

        if (cache.Count == 0)
        {
            throw new GetCacheException(Table);
        }

        return(cache);
    }