/// <summary>
        /// carrega todas as excepções ocorridas para um array de excepções
        /// </summary>
        /// <returns></returns>
        public override ExceptionInfo[] load()
        {
            DataSet dataset = SqlServerUtility.getAllFromDB("OrionsBelt_ExceptionLogLoad");

            int i = 0, count = dataset.Tables[0].Rows.Count;

            ExceptionInfo[] exceptions = new ExceptionInfo[count];

            foreach (DataRow row in dataset.Tables[0].Rows)
            {
                _exception      = row;
                exceptions[i++] = new ExceptionInfo(
                    (int)getField("exceptionLog_id"),
                    (string)getField("exceptionLog_name"),
                    (DateTime)getField("exceptionLog_date"),
                    (string)getField("exceptionLog_message"),
                    (string)getField("exceptionLog_stackTrace")
                    );
            }

            return(exceptions);
        }
Ejemplo n.º 2
0
        /// <summary>Obtém as notícias existentes</summary>
        protected override NewsList GetNewsFromDB()
        {
            DataSet ds = SqlServerUtility.getAllFromDB("OrionsBelt_GetNews");

            return(NewsFromDataSet(ds));
        }
Ejemplo n.º 3
0
 override public UtilityCollection getAllMasterSkinsFromDB()
 {
     return(storeSkins(SqlServerUtility.getAllFromDB("OrionsBelt_MasterSkinsGetAllMasterSkins")));
 }
Ejemplo n.º 4
0
        /// <summary>Obtm a quantidade de utilizadores registados</summary>
        public override int getUserCount()
        {
            DataSet ds = SqlServerUtility.getAllFromDB("OrionsBelt_UsersGetCount");

            return((int)ds.Tables[0].Rows[0]["count"]);
        }
Ejemplo n.º 5
0
        public override User[] getUsersRanking()
        {
            DataSet ds = SqlServerUtility.getAllFromDB("OrionsBelt_UsersGetUserRanks");

            return(PopulateUserRankings(50, ds, "user_id"));
        }
Ejemplo n.º 6
0
 /// <summary>
 /// retorna a informao das namedPages da Base de Dados
 /// </summary>
 /// <returns>collection com as namedPages</returns>
 override public UtilityCollection getAllNamedPagesFromDB()
 {
     return(storeNamedPages(SqlServerUtility.getAllFromDB("OrionsBelt_NamedPagesGetAllNamedPages")));
 }