private string MakeCbSourceCode(object ob) { string st = Empty; UpdateCodeAttributes(); if (ob.GetType() == typeof(TableClass)) { var tc = ob as TableClass; st = CodeFactory.Instance().CreateDesignForCbTable(0, tc); } else if (ob.GetType() == typeof(ViewClass)) { var tc = ob as ViewClass; st = CodeFactory.Instance().CreateDesignForCbTable(0, tc); } return(st); }
private void UpdateCodeAttributes() { CodeFactory.Instance().Init(_localNotify, _dbReg.Alias); if (rbGenerateInrWithGenerator.Checked) { CodeFactory.Instance().CodeCreateAttribute.PrimaryFieldType = eCodePrimaryFieldType.GenID; } else if (rbGenerateGUID.Checked) { CodeFactory.Instance().CodeCreateAttribute.PrimaryFieldType = eCodePrimaryFieldType.GenGUID; } else if (rbGenerateOID.Checked) { CodeFactory.Instance().CodeCreateAttribute.PrimaryFieldType = eCodePrimaryFieldType.GenOID; } else if (rbGUIDHEXGeneration.Checked) { CodeFactory.Instance().CodeCreateAttribute.PrimaryFieldType = eCodePrimaryFieldType.GenGUIDHEX; } CodeFactory.Instance().CodeCreateAttribute.CodeNamespace = txtDBNamespace.Text.Trim(); }
private string MakeGlobalCode() { var items = selDBObjects.CheckedItemDatas; return(CodeFactory.Instance().MakeGlobalCode(items, 0)); }