Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
 public bool Destroy(object StoryKickID)
 {
     return(StoryKick.Destroy(StoryKickID) == 1);
 }