private void ExecuteButton_Click(object sender, RoutedEventArgs e) { AValue.ConfigData.SetSqlScriptOutputDirectoryPath(this.OutputDirectoryPathTextBox.Text); String path = this.OutputDirectoryPathTextBox.Text; var gen = new SqlScriptFileGenerator(TableStoredProcedureFactory.Create(AValue.SchemaData.DatabaseServer, "")); gen.Tables.AddRange(AValue.SchemaData.Tables); gen.FolderPath = path; gen.FileGenerated += this.Dispatcher.CreateEventHander <SqlScriptFileGeneratedEventArgs>(SqlScriptFile_FileGenerated); gen.Completed += this.Dispatcher.CreateEventHander(SqlScriptFile_Completed); this.ResultLabel.Text = ""; gen.Start(); }
public SqlScriptFileGenerator(TableStoredProcedureFactory factory) { this.Factory = factory; this.Tables = new List<Table>(); }
public List <StoredProcedure> AddStoredProcedure(Table table) { var f = TableStoredProcedureFactory.Create(this.DatabaseSchemaReader); return(f.CreateTableStoredProcedures(table)); }