public void InitializeContext()
 {
     this.schemaFilePath = PathTo("SchemaUpgradeContext\\OlderVersion.patterndefinition");
     this.diagrams = new List<string>
         {
             Path.Combine(Path.GetDirectoryName(this.schemaFilePath), "OlderVersion.View1.patterndefinition.diagram"),
             Path.Combine(Path.GetDirectoryName(this.schemaFilePath), "OlderVersion.View2.patterndefinition.diagram"),
         };
     this.createdTime = new FileInfo(this.schemaFilePath).LastWriteTime;
     this.context = new SchemaUpgradeContext(schemaFilePath, this.diagrams);
 }
Exemplo n.º 2
0
        private void ExecuteUpgradeRules(string schemaFilePath, string[] diagramFilePaths)
        {
            if (this.PatternModelUpgradeManager != null)
            {
                // Create the context
                var context        = new SchemaUpgradeContext(schemaFilePath, diagramFilePaths);
                var componentModel = this.ServiceProvider.GetService <SComponentModel, IComponentModel>();
                componentModel.DefaultCompositionService.SatisfyImportsOnce(context);

                // Execute the manager
                this.PatternModelUpgradeManager.Execute(context);
            }
        }
Exemplo n.º 3
0
        private void ExecuteUpgradeRules(string schemaFilePath, string[] diagramFilePaths)
        {
            if (this.PatternModelUpgradeManager != null)
            {
                // Create the context
                var context = new SchemaUpgradeContext(schemaFilePath, diagramFilePaths);
                var componentModel = this.ServiceProvider.GetService<SComponentModel, IComponentModel>();
                componentModel.DefaultCompositionService.SatisfyImportsOnce(context);

                // Execute the manager
                this.PatternModelUpgradeManager.Execute(context);
            }
        }
 public void InitializeContext()
 {
     this.schemaFilePath = PathTo("SchemaUpgradeContext\\CurrentVersion.gen.patterndefinition");
     this.createdTime = new FileInfo(this.schemaFilePath).LastWriteTime;
     this.context = new SchemaUpgradeContext(schemaFilePath, null);
 }