void Run() { var exporter = new SchemaExporter(); exporter.InitializeContext(); var context = exporter.Context; Process = context.ProcessInfo; exporter.Context.FileSystem.CheckinComment = App.Model.CheckinComment; exporter.Context.FileSystem.IntegrateWithTFSAndCheckInAutomatically = App.Config.IntegrateWithTFSAndCheckInAutomatically; exporter.Export(SchemaName); if (context.ErrorList.Any()) { context.ProcessInfo.Text = string.Join(Environment.NewLine, context.ErrorList); Thread.Sleep(TimeSpan.FromSeconds(2)); refresher.Stop(); return; } OnProcessCompletedSuccessfully(); }
public void AllScenario() { ConfigurationHelper.ConfigurationDirectoryPath = "Configs"; var schemaExporter = new SchemaExporter(); schemaExporter.InitializeContext(); schemaExporter.Database.CreateTables(); schemaExporter.Context.MsBuildQueue.BuildAfterCodeGenerationIsCompleted = false; schemaExporter.Export("ERP"); schemaExporter.Context.ErrorList.Should().BeEmpty(); }