예제 #1
0
        public static StoryKickCollection FetchByUserID(int userID)
        {
            StoryKickCollection storyKicks = new StoryKickCollection();

            storyKicks.LoadAndCloseReader(StoryKick.FetchByParameter(StoryKick.Columns.UserID, userID));
            return(storyKicks);
        }
예제 #2
0
 public static void Destroy(int storyID, int userID, int hostID)
 {
     //NOTE: GJ: there is most likely a much better way of doing this with subsonic
     Query query = new Query(StoryKick.Schema).WHERE(StoryKick.Columns.StoryID, storyID).AND(StoryKick.Columns.UserID, userID).AND(StoryKick.Columns.HostID, hostID);
     StoryKick storyKick = new StoryKick();
     storyKick.LoadAndCloseReader(StoryKick.FetchByQuery(query));
     StoryKick.Destroy(storyKick.StoryKickID);
 }
예제 #3
0
        public static void Destroy(int storyID, int userID, int hostID)
        {
            //NOTE: GJ: there is most likely a much better way of doing this with subsonic
            Query     query     = new Query(StoryKick.Schema).WHERE(StoryKick.Columns.StoryID, storyID).AND(StoryKick.Columns.UserID, userID).AND(StoryKick.Columns.HostID, hostID);
            StoryKick storyKick = new StoryKick();

            storyKick.LoadAndCloseReader(StoryKick.FetchByQuery(query));
            StoryKick.Destroy(storyKick.StoryKickID);
        }
예제 #4
0
 public static StoryKick AddStoryKick(int storyID, int userID, int hostID, string ipAddress)
 {
     StoryKick storyKick = new StoryKick();
     storyKick.StoryID = storyID;
     storyKick.UserID = userID;
     storyKick.HostID = hostID;
     storyKick.IPAddress = ipAddress;
     storyKick.Save();
     return storyKick;
 }
예제 #5
0
        public void Insert(int StoryID, int UserID, int HostID, DateTime CreatedOn, string IPAddress)
        {
            StoryKick item = new StoryKick();

            item.StoryID = StoryID;

            item.UserID = UserID;

            item.HostID = HostID;

            item.CreatedOn = CreatedOn;

            item.IPAddress = IPAddress;


            item.Save(UserName);
        }
        public void Insert(int StoryID,int UserID,int HostID,DateTime CreatedOn,string IPAddress)
        {
            StoryKick item = new StoryKick();

            item.StoryID = StoryID;

            item.UserID = UserID;

            item.HostID = HostID;

            item.CreatedOn = CreatedOn;

            item.IPAddress = IPAddress;

            item.Save(UserName);
        }
예제 #7
0
 public bool Destroy(object StoryKickID)
 {
     return(StoryKick.Destroy(StoryKickID) == 1);
 }
예제 #8
0
 public bool Delete(object StoryKickID)
 {
     return(StoryKick.Delete(StoryKickID) == 1);
 }