Exemplo n.º 1
0
        public bool ShowTableEditorDialog(IEditSchemaProvider schemaProvider, TableSchema table, bool create)
        {
            TableEditorSettings settings = new TableEditorSettings();
            TableEditorDialog   dlg      = new TableEditorDialog(schemaProvider, create, settings);

            dlg.Initialize(table);

            return(RunDialog(dlg));
        }
Exemplo n.º 2
0
        public bool ShowTableEditorDialog(IEditSchemaProvider schemaProvider, TableSchema table, bool create)
        {
            TableEditorSettings settings = new TableEditorSettings();

            settings.ConstraintSettings.CheckSettings.SupportsColumnConstraints = false;
            TableEditorDialog dlg = new TableEditorDialog(schemaProvider, create, settings);

            dlg.Initialize(table);
            return(RunDialog(dlg));
        }
Exemplo n.º 3
0
        public bool ShowTableEditorDialog(IEditSchemaProvider schemaProvider, TableSchema table, bool create)
        {
            TableEditorSettings settings = new TableEditorSettings();

            // SQLite doesn't support "NO ACTION" on "Foreign Key"
            settings.ConstraintSettings.ForeignKeySettings.SupportsNoAction = false;
            TableEditorDialog dlg = new TableEditorDialog(schemaProvider, create, settings);

            dlg.Initialize(table);

            return(RunDialog(dlg));
        }