PowerDesigner 生成C#实体模版代码

操作步骤见:  https://blog.csdn.net/da454122373/article/details/54346217

最后的template 模版代码如下: 

.if (%isValidAttribute%)

///<summary>
///[%comment%\n]\
///</summary>
[%customAttributes%\n]\
.if (%Multiple% == false) and (%isIndexer% == false)
[%visibility% ][%flags% ]%dataType% %Code%[ = %InitialValue%]{get;set;}
.else
[%visibility% ][%flags% ]%dataType%[%arraySize%] %Code%[ = %InitialValue%]{get;set;}
.endif
.endif

 效果如下,简单的一个结构

记录以便后期需要

猜你喜欢

转载自www.cnblogs.com/tiandi0808/p/10719503.html
今日推荐