public PollAnswersCollection FetchAll() { PollAnswersCollection coll = new PollAnswersCollection(); Query qry = new Query(PollAnswers.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public static PollAnswersCollection GetAnswersForPollQuestion(Guid pollQuestionId) { if (pollQuestionId == Guid.Empty) { return null; } IDataReader rdr = PollAnswers.FetchByParameter(PollAnswers.Columns.QuestionId, pollQuestionId); PollAnswersCollection col = new PollAnswersCollection(); col.LoadAndCloseReader(rdr); return col; }
public PollAnswersCollection FetchByQuery(SubSonic.Query qry) { PollAnswersCollection coll = new PollAnswersCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }