您的位置:首页 > 其它

修改PD的OOM生成脚本

2015-07-27 20:51 309 查看


修改内容如下
C# 2::Profile\Attribute\Templates\definition
\n
.if (%isGenerated%) and (%isValidAttribute%)
 /// <summary>\n
 .if (%Comment% == "")
 ///\n
 .else
 %comment%\n
 .endif
 /// </summary> 
[%oidDocTag%\n]
 .if(%customAttributes% != "")
[%customAttributes%]\n
 .endif
\[Display(Name = "%Name%")\]\n
   .if (%Multiple% == false) and (%isIndexer% == false)
 public [%flags% ]%dataType% %fieldCode%[ = %InitialValue%] { get; set; }
   .else
 public [%flags% ]%dataType%[%arraySize%] %fieldCode%[ = %InitialValue%] { get; set; }
   .endif
.endif
C# 2::Profile\Class\Templates\definition
 /// <summary>\n
 .if (%Comment% == "")
 ///\n
 .else
 %comment%\n
 .endif
 /// </summary> 
[%oidDocTag%\n]\
[%classProperties%\n]\
\[Table("%Code%")\]
public [%flags% ][%isPartialType%?partial ]class %Code%[%genericTypeParameters%][ : %inheritanceList%][ %genericTypeConstraints%]
{
[\
   %members%\n
]\
[\
   %innerClasses%\n
]\
[\
   %innerInterfaces%\n
]\
}
C# 2::Profile\Classifier\Templates\usings
.unique
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;\n
.if (%isWebServiceClass%)
using System.Web;
using System.Web.Services;
.endif(\n)
[%Imports%\n]
.endunique
C# 2::Profile\Class\Criteria\Enum\Templates\definition
.foreach_item(Attributes)
\n
/// <summary>\n
 .if (%Comment% == "")
///\n
 .else
 %comment%\n
 .endif
/// </summary> 
[%oidDocTag%\n]
 .if(%customAttributes% != "")
[%customAttributes%]\n
 .endif
\[Display(Name = "%Name%")\]
[%definition%]
.next(,\n)
最后效果。

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息