Exemplo n.º 1
0
        /// <summary>
        /// 以SID取一筆資料
        /// </summary>
        /// <param name="SID"></param>
        /// <returns></returns>
        public ExpLogInfo Load(int SID)
        {
            ExpLogInfo result = new ExpLogInfo();

            try
            {
                var db = new ExpLogDB();
                result = db.Load(SID);
            }
            catch
            {
                result = null;
            }
            return(result);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 依條件取多筆資料 (目前 TOP 10)
        /// </summary>
        /// <returns></returns>
        public DataTable Load()
        {
            DataTable result = new DataTable();

            try
            {
                var db = new ExpLogDB();
                result = db.Load();
            }
            catch
            {
                result = null;
            }
            return(result);
        }