Esempio n. 1
0
        public List <List <string> > ClientsInfo()
        {
            List <List <string> > res = new List <List <string> >();
            var reader_n = doQuery.Start(SqlQueries.ClientsNames());
            var reader_p = doQuery.Start(SqlQueries.ClientsPhones());
            var reader_i = doQuery.Start(SqlQueries.ClientsDiscount());
            var reader_e = doQuery.Start(SqlQueries.ClientsExtraData());

            res.Add(reader_n.GetListOfString(0));
            res.Add(reader_p.GetListOfString(0));
            res.Add(reader_i.GetListOfString(0));
            res.Add(reader_e.GetListOfString(0));
            return(res);
        }
Esempio n. 2
0
 public List <string> ClientsNames()
 {
     using (var reader = doQuery.Start(SqlQueries.ClientsNames()))
         return(reader.GetListOfString(0));
 }