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

 

posted @ 2016-07-18 14:47  文艺流浪汉  阅读(747)  评论(0编辑  收藏  举报