private void CreatCsS3BLL() { 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 s3 = new BuilderFrameS3(dbobj, dbname, tablename, modelname, bllname, dalname, GetFieldlist(), GetKeyFields(), namepace, namepace2, setting.DbHelperName); 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 blltype = GetBLLType(); string strCode = builderFrameS.GetBLLCode(blltype, chk_CS_GetMaxID.Checked, chk_CS_Exists.Checked, chk_CS_Add.Checked, chk_CS_Update.Checked, chk_CS_Delete.Checked, chk_CS_GetModel.Checked, chk_CS_GetModelByCache.Checked, chk_CS_GetList.Checked); SettxtContent("CS", strCode); }
private void CreatCsS3BLL() { 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; if (modelNameParent == "") { modelNameParent = tableNameParent; } if (modelNameSon == "") { modelNameSon = tableNameSon; } string bllname = modelNameParent; string dalnameparent = modelNameParent; string dalnameson = modelNameSon; //命名规则处理 modelNameParent = namerule.GetModelClass(modelNameParent); modelNameSon = namerule.GetModelClass(modelNameSon); bllname = namerule.GetBLLClass(bllname); dalnameparent = namerule.GetDALClass(dalnameparent); dalnameson = namerule.GetDALClass(dalnameson); BuilderFrameS3 s3 = new BuilderFrameS3(dbobj, dbname, tablename, modelNameParent, bllname, dalnameparent, GetFieldlistP(), GetKeyFieldsP(), namepace, namepace2, setting.DbHelperName); string blltype = GetBLLType(); string strCode = s3.GetBLLCode(blltype, false, chk_CS_Exists.Checked, chk_CS_Add.Checked, chk_CS_Update.Checked, chk_CS_Delete.Checked, chk_CS_GetModel.Checked, chk_CS_GetModelByCache.Checked, chk_CS_GetList.Checked); SettxtContent("CS", strCode); }