private void GenerateTableColumns() { var codeMaker = new DBCodeMaker(idbObj, this.DBName, this.TableName, this.Compay, this.Project, this.Author, this.GetClassName, "Table", this.TableName, this.TableDescription); this.codeGengerateDbScript.SetCodeEditorContent("SQL", codeMaker.DBSQL()); this.codeGengerateDbScript.SaveFileName = this.GetClassName + "TableColumns.sql"; }
private void BuilderEntity() { var codeMaker = new DBCodeMaker(idbObj, this.DBName, this.TableName, this.Compay, this.Project, this.Author, this.GetClassName, "Entity", this.TableName, this.TableDescription); this.textEditorEntity.SetCodeEditorContent("CS", codeMaker.BuilderEntity()); this.textEditorEntity.SaveFileName = this.TableName + "Entity"; }
private void BuilderService(string outPutFile, string tabName) { string file = Application.StartupPath + "\\Templates\\Service.cst"; string code = CodeMakerLibary.GetTemplate(file); code = ReplaceAssemblyInfo(code); DBCodeMaker.WriteCode(outPutFile, true, code); }
private void BuilderManager() { this.codeEditorManager.Text = string.Empty; var codeMaker = new DBCodeMaker(idbObj, this.DBName, this.TableName, this.Compay, this.Project, this.Author, this.GetClassName, "Manager", this.TableName, this.TableDescription); this.codeEditorManager.SetCodeEditorContent("CS", codeMaker.BuilderManager()); this.codeEditorManager.SaveFileName = this.TableName + "Manager.Auto"; }
private void BuilderManager(string outPutFile, string tabName) { DBCodeMaker codeMaker = new DBCodeMaker(dbobj, this.dbname, tabName, this.CompanyName, this.Project, this.Author, this.ClassName, "Manager", tabName, string.Empty); codeMaker.BuilderManager(outPutFile, true); }