public CustomRenamerExample(RuleSet ruleSet, GlobalOptions opts)
     : base(ruleSet, opts)
 {
 }
示例#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));
        }
示例#3
0
 public DefaultRenamer(RuleSet ruleSet, GlobalOptions opts)
 {
     Inflector = new Flexer(ruleSet);
     Options = opts;
 }
示例#4
0
文件: Flexer.cs 项目: svallory/Flexer
 public Flexer(RuleSet ruleset)
 {
     this._ruleset = ruleset;
 }