public static List <Models.Forums> GetLastForums(int top, int skip = 0) { using (PetaPoco.Database db = new PetaPoco.Database("sqlconnection")) { return(db.SkipTake <Models.Forums>(skip, top, "where is_hidden=0 order by is_top desc,addtime DESC").ToList()); } }
public static List <Models.Forums> GetLastForums(int top, int skip = 0) { using (PetaPoco.Database db = new PetaPoco.Database("sqlconnection")) { return(db.SkipTake <Models.Forums>(skip, top, " ORDER BY addtime DESC").ToList()); } }
public static List<Models.Forums> GetLastForums(int top, int skip = 0) { using (PetaPoco.Database db = new PetaPoco.Database("sqlconnection")) { return db.SkipTake<Models.Forums>(skip, top, " ORDER BY addtime DESC").ToList(); } }