修改内容如下
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) |
最后效果。