public CustomRenamerExample(RuleSet ruleSet, GlobalOptions opts) : base(ruleSet, opts) { }
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)); }
public DefaultRenamer(RuleSet ruleSet, GlobalOptions opts) { Inflector = new Flexer(ruleSet); Options = opts; }
public Flexer(RuleSet ruleset) { this._ruleset = ruleset; }