public PollAnswersCollection FetchAll()
 {
     PollAnswersCollection coll = new PollAnswersCollection();
     Query qry = new Query(PollAnswers.Schema);
     coll.LoadAndCloseReader(qry.ExecuteReader());
     return coll;
 }
示例#2
0
        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;
 }
 public PollAnswersCollection FetchByID(object PollAnswerId)
 {
     PollAnswersCollection coll = new PollAnswersCollection().Where("PollAnswerId", PollAnswerId).Load();
     return coll;
 }