/// <summary>Obtm a quantidade de utilizadores registados</summary> public override int getUserCount() { DataSet ds = PostGreServerUtility.getAllFromDB("OrionsBelt_UsersGetCount"); object o = ds.Tables[0].Rows[0][0]; return (int)(Int64)o; }
public override User[] getUsersRanking() { DataSet ds = PostGreServerUtility.getAllFromDB("OrionsBelt_UsersGetUserRanks"); return PopulateUserRankings(50, ds, "user_id"); }
/// <summary>Obtém as notícias existentes</summary> protected override NewsList GetNewsFromDB() { DataSet ds = PostGreServerUtility.getAllFromDB("OrionsBelt_GetNews"); return(NewsFromDataSet(ds)); }
/// <summary> /// Carrega as seccoes existentes para uma base de dados /// </summary> /// <returns>um objecto do tipo SectionCollection com todas as collections</returns> override public UtilityCollection getAllSectionsFromDB() { return(storeSections(PostGreServerUtility.getAllFromDB("OrionsBelt_SectionsGetAllSections"))); }
public override ArrayList GetAll() { DataSet alliances = PostGreServerUtility.getAllFromDB("OrionsBelt_AllianceGetAlliance"); return(FromDataSet(alliances)); }
/// <summary> /// retorna a informao das namedPages da Base de Dados /// </summary> /// <returns>collection com as namedPages</returns> override public UtilityCollection getAllNamedPagesFromDB() { return(storeNamedPages(PostGreServerUtility.getAllFromDB("OrionsBelt_NamedPagesGetAllNamedPages"))); }