You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
690 B
Plaintext

using System;
using NCA_MES_Models.CommonUtils.DB.DBAttribute;
namespace ${namespace_name}
{
/// <summary>
/// ${table_comment}
/// </summary>
[TableName("${sql_table_name}")]
public class ${table_name} : DBBaseModel<${table_name}>
{
$foreach(filedInfo in filedInfos)
/// <summary>
///${filedInfo["comment"]}
/// </summary>
$if(filedInfo["is_primary_key"]=="true")
[TableId]
$end
$if(filedInfo["is_nullable"]=="true")
[NotEmpty]
$end
[TableField("${filedInfo["sql_field_name"]}", "${filedInfo["comment"]}")]
public ${filedInfo["type_name"]} ${filedInfo["field_name"]} { get; set; }
$end
}
}