private DatabaseCopyOptions CreateOptions() { DatabaseCopyOptions opts = new DatabaseCopyOptions(); if (m_chooseNode != null) { opts.CopyMembers = m_chooseNode.GetChoosedMembers(); } if (m_target.Dialect != null) { opts.MigrationProfile = m_target.Dialect.CreateMigrationProfile(); } if (rbDefaultSchema.Checked) { opts.SchemaMode = DbCopySchemaMode.Explicit; } if (rbExplicitSchema.Checked) { opts.SchemaMode = DbCopySchemaMode.Explicit; opts.ExplicitSchema = cbxExplicitSchema.Text; } if (rbOriginalSchema.Checked) { opts.SchemaMode = DbCopySchemaMode.Original; } opts.CopyStructure = chbCopyStructure.Checked; opts.DataMode = DbCopyDataMode.None; if (rbtCopyAll.Checked) { opts.DataMode = DbCopyDataMode.All; } if (rbtCopySelected.Checked) { opts.DataMode = DbCopyDataMode.Selected; } if (rbtCopyUnselected.Checked) { opts.DataMode = DbCopyDataMode.Unselected; } foreach (NameWithSchema tbl in lbxSelectedTables.Items) { opts.DataCopyTables.Add(tbl); } opts.TableOptions = tableCopyOptionsFrame1.GetOptions(); return(opts); }
private Job CreateJob() { //return new BackupDbJobCommand(m_source, m_format, m_chooseNode.GetChoosedMembers()); return(BackupDbJob.CreateJob(m_source, m_format, m_chooseNode.GetChoosedMembers(), null)); }