示例#1
0
 public void TestMetaModelLoad()
 {
     var edmx = new EdmxFile(@"Movies.edmx");
     var model = new MetaModel(edmx);
 }
示例#2
0
        public void Run(string source, RuleSet ruleSet, GlobalOptions options, Type customRenamerType = null)
        {
            var edmxFile = new EdmxFile(source);

            MModel = new MetaModel(edmxFile);

            Options = options;

            if (customRenamerType != null)
            {
                //Renamer = (IRenamer) Activator.CreateInstance(customRenamerType, ruleSet, Options);
            }
            else
                Renamer = new DefaultRenamer(ruleSet, Options);

            ProcessCSDL(edmxFile.Concept);
            ProcessMSL(edmxFile.Mapping);
            ProcessDesigner(edmxFile.Diagram);

            edmxFile.Save(options.GetOutputPath(source));
        }