Article From:https://www.cnblogs.com/lizhenhong/p/9122434.html
1、Open the Power Designer menu, Tools, and choose
img
 
2、Select the address in the pop-up box under the PD installation directory.
img
3、object languageAfter selecting the correct directory, you can choose graphic languages, such as C#. Then fill in name and code.
img
3、Select detail, look at the need to check. Be sure to complete it.
img
4、Open the generated PhysicalDiagram, the menu will appear language option, click Open edit current object language
img
5、Modify profile-> attribut-> templates-> definition
img
CODE:
.if (%isGenerated%) and (%isValidAttribute%)
[%oidDocTag%\n]\
[%customAttributes%\n]\
///<summary>
[%comment%\n]\
///</summary>
\[Column(“%fieldCode%”)\]\n
   .if (%Multiple% == false) and (%isIndexer% == false)
[%visibility% ][%flags% ]%dataType% %fieldCode% { get; set; }\n
   .else
[%visibility% ][%flags% ]%dataType%[%arraySize%] %fieldCode% { get; set; }\n
   .endif
.endif

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *