Ejemplo n.º 1
0
        private void InsertDB(List <List <String> > T)
        {
            for (int i = 1; i < T.Count; i++)
            {
                List <String> line = T[i];

                // Create an instance of Class Articles
                string description = line[0];
                string refArticle  = line[1];
                string marque      = line[2];
                string famile      = line[3];
                string sousFamile  = line[4];
                string prixHT      = line[5];

                Articles artcle = new Articles(description, refArticle, marque, famile, sousFamile, prixHT);

                ArticlesDAO ad = new ArticlesDAO();
                ad.connectionDB(artcle);
            }
        }