示例#1
0
        public static UserActionCollection FetchCollection(Query query)   //NOTE: GJ: it would be useful to have this in the SubSonic generated type
        {
            UserActionCollection collection = new UserActionCollection();

            collection.Load(query.ExecuteReader());
            return(collection);
        }
        public UserActionCollection FetchByQuery(Query qry)
        {
            UserActionCollection coll = new UserActionCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
        public UserActionCollection FetchAll()
        {
            UserActionCollection coll = new UserActionCollection();
            Query qry = new Query(UserAction.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
        public UserActionCollection FetchByID(object UserActionID)
        {
            UserActionCollection coll = new UserActionCollection().Where("UserActionID", UserActionID).Load();

            return(coll);
        }