コード例 #1
0
 public CustomRenamerExample(RuleSet ruleSet, GlobalOptions opts)
     : base(ruleSet, opts)
 {
 }
コード例 #2
0
ファイル: Typist.cs プロジェクト: svallory/EdmxTypist
        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
ファイル: DefaultRenamer.cs プロジェクト: svallory/EdmxTypist
 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;
 }