private string CheckMasterSetIsValid(AzMetaTableEntity checkitem, bool showDialogue) { AzClassCreatProperty creatProperty = AzCdgnClassProperty.GetItemClassCreatProperty(checkitem); if (creatProperty.ObjPresentation.IsSchemaForOther) { if (showDialogue) { GeneralHelpler.SomethingError($"当前项目{checkitem.ClassName}({checkitem.ClassDisPlay})为“结构查询”,不能生成代码!"); } return($"{checkitem.ClassName}({checkitem.ClassDisPlay})"); } return(string.Empty); }
private void CreateCodeBath(List <string> oplist, string current) { var item = AzMetaTableHandle.Handle().Select().Where(m => m.ObjModeName == current).Go().FirstOrDefault(); if (item == null) { return; } var itemDetails = AzMetaCloumHandle.Handle().Select().Where(t => t.TableName == item.SchemaName).OrderBy(t => t.ShowOrder).Go(); var itemproperty = AzCdgnClassProperty.GetItemClassCreatProperty(item); var list = GetCreateList(oplist, itemproperty); foreach (string c in list) { CreateCodeHandle(c, item, itemproperty, itemDetails); } azCdgnDetail1.SetCodeCreateMsg(CodeHandle.GetCodeHandleMsg()); }