-
Notifications
You must be signed in to change notification settings - Fork 4
Model C#
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
}
}
- 效果: