/// <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); }
public void Save() { XDocument SavedDocument = new XDocument(); SavedDocument.Add(this.ToXml()); SavedDocument.Save(Name); foreach (TLocalChannel ChannelItem in _GetChannels(this.RootGroup)) { ChannelItem.Save(); } }
/// <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(); }