示例#1
0
        public static DataTable getArea()
        {
            string sql = @"Select * from Area";

            return(DAO.GetDataBySQL(sql));
        }
示例#2
0
        public static DataTable getTopic(string s)
        {
            string sql = @"Select * from Topic";

            return(DAO.GetDataBySQL(sql));
        }
示例#3
0
        public static DataTable getAllPost()
        {
            string sql = @"select * from Post";

            return(DAO.GetDataBySQL(sql));
        }
示例#4
0
        public static DataTable getTop1Post()
        {
            string sql = @" select top 1 * from Post order by date desc";

            return(DAO.GetDataBySQL(sql));
        }
示例#5
0
        public static DataTable GetAllAccount()
        {
            string sql = @"select id,username, password,email, role from Account";

            return(DAO.GetDataBySQL(sql));
        }