private void CreatCsF3BLL() { 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; if (modelNameParent == "") { modelNameParent = tableNameParent; } string bllname = modelNameParent; string dalnameparent = modelNameParent; BuilderFrameF3 f3 = new BuilderFrameF3(dbobj, dbname, tablename, modelNameParent, bllname, dalnameparent, GetFieldlistP(), GetKeyFieldsP(), namepace, namepace2, setting.DbHelperName); string blltype = GetBLLType(); string strCode = f3.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, chk_CS_GetList.Checked); SettxtContent("CS", strCode); }
private void CreatCsF3BLL() { 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); BuilderFrameF3 f3 = new BuilderFrameF3(dbobj, dbname, tablename, modelname, bllname, dalname, GetFieldlist(), GetKeyFields(), namepace, namepace2, setting.DbHelperName); string blltype = GetBLLType(); string strCode = f3.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, chk_CS_GetList.Checked); SettxtContent("CS", strCode); }