public PollReactionsCollection FetchAll()
 {
     PollReactionsCollection coll = new PollReactionsCollection();
     Query qry = new Query(PollReactions.Schema);
     coll.LoadAndCloseReader(qry.ExecuteReader());
     return coll;
 }
Ejemplo n.º 2
0
        public static PollReactionsCollection GetReactionsForPollQuestion(Guid pollQuestionId)
        {
            if (pollQuestionId == Guid.Empty)
            {
                return null;
            }

            IDataReader rdr = PollReactions.FetchByParameter(PollReactions.Columns.PollId, pollQuestionId);
            PollReactionsCollection col = new PollReactionsCollection();
            col.LoadAndCloseReader(rdr);
            return col;
        }
 public PollReactionsCollection FetchByQuery(SubSonic.Query qry)
 {
     PollReactionsCollection coll = new PollReactionsCollection();
     coll.LoadAndCloseReader(qry.ExecuteReader());
     return coll;
 }