/// <summary>
        /// Modify only the specified properties of the ApplicationSettingsCategory
        /// specified by:
        /// </summary>
        /// <param name="applicationSettingsCategoryId">PK</param>
        /// <param name="propValues">Properties to change</param>
        public virtual void Modify(Int32 applicationSettingsCategoryId, params KeyValuePair <string, object>[] propValues)
        {
            try
            {
                Trace.WriteInformation("({0}, {1})", "Modify", CLASSNAME, applicationSettingsCategoryId, string.Join(",", propValues));

                DataAccess.ApplicationSettingsCategories applicationSettingsCategories = new DataAccess.ApplicationSettingsCategories();
                applicationSettingsCategories.Modify(
                    applicationSettingsCategoryId,
                    propValues);
                return;
            }
            catch (Exception ex)
            {
                Trace.WriteError("({0})", "Modify", CLASSNAME, ex, applicationSettingsCategoryId);
                throw;
            }
        }
        /// <summary>
        /// Modify the given ApplicationSettingsCategory in the database
        /// </summary>
        public virtual void Modify(Model.ApplicationSettingsCategory modifiedApplicationSettingsCategory)
        {
            try
            {
                Trace.WriteInformation("({0})", "Modify", CLASSNAME, modifiedApplicationSettingsCategory);

                //Begin Checks
                CheckConstraints(modifiedApplicationSettingsCategory);

                if (!Exists(modifiedApplicationSettingsCategory))
                {
                    throw new BusinessException(string.Format("There is no ApplicationSettingsCategory with this id. ({0})", modifiedApplicationSettingsCategory));
                }

                DataAccess.ApplicationSettingsCategories applicationSettingsCategories = new DataAccess.ApplicationSettingsCategories();
                applicationSettingsCategories.Modify(modifiedApplicationSettingsCategory);
            }
            catch (Exception ex)
            {
                Trace.WriteError("({0})", "Modify", CLASSNAME, ex, modifiedApplicationSettingsCategory);
                throw;
            }
        }