原文:
1、打开Power Designer菜单 Tools,选择如图
3、object language选择正确目录后,可选如图语言,如C#。再填写name和code。
4、打开生成后的PhysicalDiagram,菜单就会出现language选项,点击打开 edit current object language
5、修改profile->attribut->templates->definition
.if (%isGenerated%) and (%isValidAttribute%)
\[Column("%fieldCode%")\]\n
.if (%Multiple% == false) and (%isIndexer% == false)
[%visibility% ][%flags% ]%dataType% %fieldCode% { get; set; }\n
[%visibility% ][%flags% ]%dataType%[%arraySize%] %fieldCode% { get; set; }\n