public CodeGenerator(ApplicationPreferences appPrefs, Table table) : base(appPrefs.DomainFolderPath, appPrefs.TableName, appPrefs.NameSpace, appPrefs.AssemblyName, table, appPrefs) { this.appPrefs = appPrefs; Inflector.EnableInflection = appPrefs.EnableInflections; }
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; }
public ApplicationController(ApplicationPreferences applicationPreferences, Table table) { this.applicationPreferences = applicationPreferences; codeGenerator = new CodeGenerator(applicationPreferences, table); }