Example #1
0
        /// <summary>
        /// Executes the update.
        /// </summary>
        /// <param name="context"></param>
        public override void Execute(DatabaseUpdateContext context)
        {
            // make sure it exists...
            ConfigItem.EnsureConfigTableExists();

            // create...
            IDictionary missing = this.GetMissingItems();

            if (missing == null)
            {
                throw new InvalidOperationException("missing is null.");
            }

            // run...
            foreach (DictionaryEntry entry in missing)
            {
                Runtime.Current.SharedSettings.SetValue((string)entry.Key, entry.Value);
            }
        }