powerdesigner 生成实体代码 模板的修改
修改语言 工具- resources- object language-C#2 属性- profile-attribute-template-definition
修改原来生成的模板
.if (%isGenerated%) and (%isValidAttribute%) [%oidDocTag%/n] [%customAttributes%/n] /// <summary> /// [%Name%] /// </summary> .if (%Multiple% == false) and (%isIndexer% == false) [%visibility% ][%flags% ]%dataType% %fieldCode% { get ; set; } .else private %dataType%[%arraySize%] _%fieldCode%[ = %InitialValue%]; [%visibility% ][%flags% ]%dataType%[%arraySize%] %fieldCode% { get ; set; } .endif .endif