Ejemplo n.º 1
0
        /// <summary>
        /// Create a new channel item object and persist it into the database.
        /// </summary>
        /// <param name="channelItem">The channel item object</param>
        public ChannelItem AddChannelItem(ChannelItem channelItem)
        {
            // Persist the object into the database
            channelItem.Save();

            // Return the new object with the new identifier (AUTO)
            return(channelItem);
        }
Ejemplo n.º 2
0
        public void Save()
        {
            XDocument SavedDocument = new XDocument();

            SavedDocument.Add(this.ToXml());

            SavedDocument.Save(Name);
            foreach (TLocalChannel ChannelItem in _GetChannels(this.RootGroup))
            {
                ChannelItem.Save();
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Update a channel item object and persist changes into the database
 /// </summary>
 /// <param name="channelItem"></param>
 public void UpdateChannelItem(ChannelItem channelItem)
 {
     // Persist the object into the database
     channelItem.Save();
 }