enterprise architect - Install database datatypes using MDG file or add-in? -
i able define custom programming language in enterprise architect custom data types navigating project > settings > code engineering datatypes.... when create mdg file, have option include programming language definition, , far can tell, working - @ least, in new project uses mdg file, can see programming language.
now have same behavior dbms , database datatypes defined through project > settings > database datatypes.... tests, impression these types not automatically included in mdg file, , haven't found trivial way include them. there way add database datatypes mdg file well? if not, there way achieve same result through automation interface, e. g. writing add-in creates dbms , associated datatypes?
going mdg technology way, answer appears no. it's possible trick ea (11) exporting db types in mdg technology, if they're in there, ignored in projects use mdg technology.
db types , code engineering (or, sometimes, "programming language") datatypes both stored in ea's t_datatypes table. same product name can used both programming language , db engine.
it looks mdg technology wizard scans table looking rows "code" in type column during setup (code modules wizard page), when time comes write actual datatypes output file, retrieves rows specified productname.
this means if create db product , populate set of datatypes, , create programming language product same name single dummy datatype, db types included in mdg technology xml file along dummy type.
however, appears while regular properties dialog (for classes etc) checks loaded mdg technologies in addition t_datatypes table in order populate language drop-down list, specialized properties dialog database tables not check mdg technologies when populating corresponding database drop-down. though datatypes in file, can't use them.
going add-in route, answer yes.
have add-in respond ea_fileopen event , check repository.datatypes collection see if db types installed , if not, add them.
you don't need write add-in if don't want, can write in-ea script. thing add-in can scripts can't respond events (which why listed in add-in model section of file). script have trigger function manually.
there api manage project's reference data of code / db datatypes 1 category, gives control of of categories (eg requirement types , constraint types), , datatype category not 1 of them.
Comments
Post a Comment