/// <summary>
        /// Saves the current configuration settings
        /// </summary>
        /// <param name="name"></param>
        public void StoreConfiguration(string name, DbResourceConfiguration config = null)
        {
            if (config == null)
                config = DbResourceConfiguration.Current;

            var existingItem = Configurations.Where(c => c.Name == name).FirstOrDefault();
            if (existingItem == null)
            {
                var configuration = new ConfigurationEntry()
                {
                    Name = name
                };

                configuration.Configuration = new DbResourceConfiguration();
                DataUtils.CopyObjectData(config, configuration.Configuration);
            }
            else
            {
                DataUtils.CopyObjectData(config, existingItem.Configuration);
            }
        }
        /// <summary>
        /// Saves the current configuration settings
        /// </summary>
        /// <param name="name"></param>
        public void StoreConfiguration(string name, DbResourceConfiguration config = null)
        {
            if (config == null)
            {
                config = DbResourceConfiguration.Current;
            }

            var existingItem = Configurations.Where(c => c.Name == name).FirstOrDefault();

            if (existingItem == null)
            {
                var configuration = new ConfigurationEntry()
                {
                    Name = name
                };

                configuration.Configuration = new DbResourceConfiguration();
                DataUtils.CopyObjectData(config, configuration.Configuration);
            }
            else
            {
                DataUtils.CopyObjectData(config, existingItem.Configuration);
            }
        }