Esempio n. 1
0
        private void CreatCsS3Model()
        {
            string procPrefix      = this.txtProcPrefix.Text;
            string namepace        = this.txtNameSpace.Text.Trim();
            string namepace2       = this.txtNameSpace2.Text.Trim();
            string tableNameParent = cmbox_PTab.Text;
            string tableNameSon    = cmbox_STab.Text;
            string modelNameParent = txtClassName.Text;
            string modelNameSon    = txtClassName2.Text;

            //命名规则处理
            modelNameParent = namerule.GetModelClass(modelNameParent);
            modelNameSon    = namerule.GetModelClass(modelNameSon);

            BuilderFrameS3 s3      = new BuilderFrameS3(dbobj, dbname, namepace, namepace2, setting.DbHelperName);
            string         strCode = s3.GetModelCode(tableNameParent, modelNameParent, GetFieldlistP(), tableNameSon, modelNameSon, GetFieldlistS());

            SettxtContent("CS", strCode);
        }
Esempio n. 2
0
        private void CreatCsS3Model()
        {
            string namepace  = this.txtNameSpace.Text.Trim();
            string namepace2 = this.txtNameSpace2.Text.Trim();
            string modelname = this.txtClassName.Text;

            if (modelname == "")
            {
                modelname = tablename;
            }
            string bllname = modelname;
            string dalname = modelname;

            //命名规则处理
            modelname = namerule.GetModelClass(modelname);
            bllname   = namerule.GetBLLClass(bllname);
            dalname   = namerule.GetDALClass(dalname);

            BuilderFrameS3 s3      = new BuilderFrameS3(dbobj, dbname, tablename, modelname, bllname, dalname, GetFieldlist(), GetKeyFields(), namepace, namepace2, setting.DbHelperName);
            string         strCode = s3.GetModelCode();

            SettxtContent("CS", strCode);
        }
Esempio n. 3
0
        private void CreatCsS3Model()
        {
            string namepace  = this.txtNameSpace.Text.Trim();
            string namepace2 = this.txtNameSpace2.Text.Trim();
            string modelname = this.txtClassName.Text;

            if (modelname == "")
            {
                modelname = tablename;
            }
            string bllname = modelname;
            string dalname = modelname;

            //命名规则处理
            modelname = NameRule.GetModelClass(modelname, this.setting);
            bllname   = NameRule.GetBLLClass(bllname, this.setting);
            dalname   = NameRule.GetDALClass(dalname, this.setting);

            BuilderFrameS3 builderFrameS = new BuilderFrameS3(this.dbobj, this.dbname, this.tablename, this.cb.TableDescription, modelname, bllname, dalname, this.GetFieldlist(), this.GetKeyFields(), namepace, namepace2, setting.DbHelperName);
            string         strCode       = builderFrameS.GetModelCode();

            SettxtContent("CS", strCode);
        }