fun tableSchemaValidation()

in src/rider/main/kotlin/com/jetbrains/rider/plugins/efcore/features/dbcontext/scaffold/ScaffoldDbContextValidator.kt [57:65]


    fun tableSchemaValidation(
        tablesList: ObservableCollection<SimpleItem>,
        scaffoldAllTables: ComponentPredicate
    ): ValidationInfoBuilder.(JPanel) -> ValidationInfo? = {
        if (!scaffoldAllTables.invoke() && tablesList.none { it.data.isNotEmpty() })
            error(EfCoreUiBundle.message("dialog.message.tables.schemas.should.not.be.empty"))
        else
            null
    }