Beispiel #1
0
        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";
        }
Beispiel #2
0
        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";
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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";
        }
Beispiel #5
0
        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);
        }