public override void SaveSettings(IProjectSettings settings)
 {
     base.SaveSettings(settings);
     if (this.IsViewGenerationSupported)
     {
         settings.SetBool("WebStackScaffolding_IsViewGenerationSelected", this.IsViewGenerationSelected);
     }
     if (this.IsAsyncSupported)
     {
         settings.SetBool("WebStackScaffolding_IsAsyncSelected", this.IsAsyncSelected);
     }
 }
 public virtual void SaveSettings(IProjectSettings settings)
 {
     settings.SetBool("WebStackScaffolding_IsLayoutPageSelected", this.IsLayoutPageSelected);
     settings.SetBool("WebStackScaffolding_IsPartialViewSelected", this.IsPartialViewSelected);
     settings.SetBool("WebStackScaffolding_IsReferencingScriptLibrariesSelected", this.IsReferenceScriptLibrariesSelected);
     if (!this.IsLayoutPageSelected)
     {
         settings["WebStackScaffolding_LayoutPageFile"] = null;
     }
     else
     {
         settings["WebStackScaffolding_LayoutPageFile"] = this.LayoutPageFile;
     }
     if (this.IsModelClassSupported && this.DataContextType != null)
     {
         settings["WebStackScaffolding_DbContextTypeFullName"] = this.DataContextType.TypeName;
     }
 }
示例#3
0
        public virtual void SaveSettings(IProjectSettings settings)
        {
            settings.SetBool(SavedSettingsKeys.IsLayoutPageSelectedKey, IsLayoutPageSelected);
            settings.SetBool(SavedSettingsKeys.IsPartialViewSelectedKey, IsPartialViewSelected);
            settings.SetBool(SavedSettingsKeys.IsReferencingScriptLibrariesSelectedKey, IsReferenceScriptLibrariesSelected);

            if (IsLayoutPageSelected)
            {
                settings[SavedSettingsKeys.LayoutPageFileKey] = LayoutPageFile;
            }
            else
            {
                settings[SavedSettingsKeys.LayoutPageFileKey] = null;
            }

            if (IsModelClassSupported && DataContextType != null)
            {
                settings[SavedSettingsKeys.DbContextTypeFullNameKey] = DataContextType.TypeName;
            }
        }
示例#4
0
        public virtual void SaveSettings(IProjectSettings settings)
        {
            settings.SetBool(SavedSettingsKeys.IsLayoutPageSelectedKey, IsLayoutPageSelected);
            settings.SetBool(SavedSettingsKeys.IsPartialViewSelectedKey, IsPartialViewSelected);
            settings.SetBool(SavedSettingsKeys.IsReferencingScriptLibrariesSelectedKey, IsReferenceScriptLibrariesSelected);

            if (IsLayoutPageSelected)
            {
                settings[SavedSettingsKeys.LayoutPageFileKey] = LayoutPageFile;
            }
            else
            {
                settings[SavedSettingsKeys.LayoutPageFileKey] = null;
            }

            if (IsModelClassSupported && DataContextType != null)
            {
                settings[SavedSettingsKeys.DbContextTypeFullNameKey] = DataContextType.TypeName;
            }
        }