Пример #1
0
        public CodeGenerator(ApplicationPreferences appPrefs, Table table)
            : base(appPrefs.DomainFolderPath, appPrefs.TableName, appPrefs.NameSpace, appPrefs.AssemblyName, table, appPrefs)
        {
            this.appPrefs = appPrefs;

            Inflector.EnableInflection = appPrefs.EnableInflections;
        }
Пример #2
0
        protected AbstractGenerator(string filePath, string tableName, string nameSpace, string assemblyName, Table table, ApplicationPreferences appPrefs)
        {
            this.filePath = filePath;

            if (!this.filePath.EndsWith(Path.DirectorySeparatorChar.ToString()))
            {
                this.filePath = this.filePath + Path.DirectorySeparatorChar;
            }

            this.tableName    = tableName;
            this.nameSpace    = nameSpace;
            this.assemblyName = assemblyName;

            Table     = table;
            Formatter = TextFormatterFactory.GetTextFormatter(appPrefs);
            this.applicationPreferences = appPrefs;
        }
Пример #3
0
 public ApplicationController(ApplicationPreferences applicationPreferences, Table table)
 {
     this.applicationPreferences = applicationPreferences;
     codeGenerator = new CodeGenerator(applicationPreferences, table);
 }