Exemple #1
0
        private void UpdateDBSchema()
        {
            ImportTableComboBox.Items.Clear();
            ExportTableComboBox.Items.Clear();

            DBSchema.ConnectionString = $"{DBConnectionString}; DataProviderString={{{DBDataProviderString}}}; SerializedSchema={SerializedSchema}";
            DBSchema.Analyze();

            foreach (Table table in DBSchema.Tables)
            {
                ImportTableComboBox.Items.Add(table);
                ExportTableComboBox.Items.Add(table);
            }

            if (ImportTableComboBox.Items.Count > 0)
            {
                ImportTableComboBox.SelectedIndex = 0;
            }
        }