Exemple #1
0
        public DataTable GetAllArticles()
        { 
                
            DataTable dt = new DataTable();
            MySqlCommand = new SqlCommand("SELECT * FROM[Article] ");

            dt = Connexion.FunctionToRead(MySqlCommand);

            return dt;

        }
Exemple #2
0
        public List <User> GetAllUsers()
        {
            List <User> AllUsers = new List <User>();

            MySqlCommand = new SqlCommand("select * from [Users]");

            dt = Connexion.FunctionToRead(MySqlCommand);

            foreach (DataRow row in dt.Rows)
            {
                AllUsers.Add(ConvertRowToUser(row));
            }

            return(AllUsers);
        }
Exemple #3
0
        public DataTable GetAllFactureLine()
        {
            DataTable dt = new DataTable();

            MySqlCommand = new SqlCommand("SELECT * FROM[LigneFacture] ");

            dt = Connexion.FunctionToRead(MySqlCommand);

            return(dt);
        }