public PollQuestionsCollection FetchAll() { PollQuestionsCollection coll = new PollQuestionsCollection(); Query qry = new Query(PollQuestions.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public PollQuestionsCollection FetchByQuery(SubSonic.Query qry) { PollQuestionsCollection coll = new PollQuestionsCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public static PollQuestionsCollection LoadQuestions() { IDataReader rdr = PollQuestions.FetchAll(); PollQuestionsCollection col = new PollQuestionsCollection(); col.LoadAndCloseReader(rdr); return col; }