Esempio n. 1
0
        /// <summary>
        /// Loads the specified library item from the database.  If not found, libraryItemId will be -1.
        /// </summary>
        /// <param name="storyId"></param>
        public Story(int storyId)
        {
            SqlDataReader reader = new StoryData().GetStoryByID(storyId);

            if (reader.Read())
            {
                LoadStory(reader);
            }
            reader.Close();
        }