예제 #1
0
파일: DALArticle.cs 프로젝트: smartyAe/Sana
        public DataTable GetAllArticles()
        { 
                
            DataTable dt = new DataTable();
            MySqlCommand = new SqlCommand("SELECT * FROM[Article] ");

            dt = Connexion.FunctionToRead(MySqlCommand);

            return dt;

        }
예제 #2
0
파일: DalAuth.cs 프로젝트: smartyAe/Sana
        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);
        }
예제 #3
0
        public DataTable GetAllFactureLine()
        {
            DataTable dt = new DataTable();

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

            dt = Connexion.FunctionToRead(MySqlCommand);

            return(dt);
        }