public void CodeGenerateOneView(string pViewName, string pSchemaName) { TypeLibraryGenerator typeGen = new TypeLibraryGenerator(this); DalGenerator dalGen = this.DalGenerator; BsGenerator bsGen = new BsGenerator(this); IView view = GetView(pViewName, pSchemaName); typeGen.Render(Output, view, UseSchemaNameInSqlQueries, UseSchemaNameInFolders, ListDatabaseAbbreviations); dalGen.Render(Output, view, UseSchemaNameInSqlQueries, UseSchemaNameInFolders, ListDatabaseAbbreviations); bsGen.Render(Output, view, UseSchemaNameInSqlQueries, UseSchemaNameInFolders, ListDatabaseAbbreviations); }
public void CodeGenerateOneTable(string pTableName, string pSchemaName) { // TODO ignore table name suffix . Make this generic if (pTableName.StartsWith("sqlite_")) { return; } TypeLibraryGenerator typeGen = this.TypeLibraryGenerator; DalGenerator dalGen = this.DalGenerator; BsGenerator bsGen = new BsGenerator(this); ITable table = this.getTable(pTableName, pSchemaName); typeGen.Render(Output, table, UseSchemaNameInSqlQueries, UseSchemaNameInFolders, ListDatabaseAbbreviations); dalGen.Render(Output, table, UseSchemaNameInSqlQueries, UseSchemaNameInFolders, ListDatabaseAbbreviations); bsGen.Render(Output, table, UseSchemaNameInSqlQueries, UseSchemaNameInFolders, ListDatabaseAbbreviations); }