Skip to content
lxy edited this page Jul 6, 2021 · 1 revision
  • 模板名称:Model-C#
  • 文件名称:${context.className}.cs
  • 文件内容:
using Newtonsoft.Json;
namespace ${context.packageName}
{
#if( "${table.comment}" != "" )
/// <summary>
/// ${table.comment}
/// </summary>
#end
public class ${context.className}
{
#foreach($column in $csharpColumns)
#if( "${column.comment}" != "" )
/// <summary>
/// ${column.comment}
/// </summary>
#end
[JsonProperty("${column.field}")]
public ${column.fieldType} ${column.property} { get; set; }
#end
}
}
  • 效果:

输入图片说明

Clone this wiki locally