override fun saveState()

in src/rider/main/kotlin/com/jetbrains/rider/plugins/efcore/features/dbcontext/scaffold/ScaffoldDbContextDataContext.kt [97:118]


    override fun saveState(commonDialogState: DialogsStateService.SpecificDialogState) {
        super.saveState(commonDialogState)

        if (pluginSettings.storeSensitiveData) {
            commonDialogState.setSensitive(KnownStateKeys.CONNECTION, connection.value)
        }

        commonDialogState.set(KnownStateKeys.PROVIDER, provider.value)
        commonDialogState.set(KnownStateKeys.OUTPUT_FOLDER, outputFolder.value)
        commonDialogState.set(KnownStateKeys.USE_ATTRIBUTES, useAttributes.value)
        commonDialogState.set(KnownStateKeys.USE_DATABASE_NAMES, useDatabaseNames.value)
        commonDialogState.set(KnownStateKeys.GENERATE_ON_CONFIGURING, generateOnConfiguring.value)
        commonDialogState.set(KnownStateKeys.USE_PLURALIZER, usePluralizer.value)
        commonDialogState.set(KnownStateKeys.DB_CONTEXT_NAME, dbContextName.value)
        commonDialogState.set(KnownStateKeys.DB_CONTEXT_FOLDER, dbContextFolder.value)

        val filteredTables = tablesList.value.filter { it.data.isNotEmpty() }
        commonDialogState.set(KnownStateKeys.TABLES, filteredTables.joinToString(listSeparator) { it.data })

        val filteredSchemas = schemasList.value.filter { it.data.isNotEmpty() }
        commonDialogState.set(KnownStateKeys.SCHEMAS, filteredSchemas.joinToString(listSeparator) { it.data })
    }