public PollVotesCollection FetchAll() { PollVotesCollection coll = new PollVotesCollection(); Query qry = new Query(PollVotes.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public PollVotesCollection FetchByQuery(SubSonic.Query qry) { PollVotesCollection coll = new PollVotesCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public PollVotesCollection FetchByID(object VoteId) { PollVotesCollection coll = new PollVotesCollection().Where("VoteId", VoteId).Load(); return coll; }