using System; using System.Collections.Generic; using SqlSugar; $blankline {{ var today=new Date(); var fullYear=today.getFullYear(); var month=today.getMonth() + 1; var days=today.getDate(); var sqlSugartable='[SugarTable("{{=it.entity.defKey}}", TableDescription = "{{=it.func.join(it.entity.defName,it.entity.comment,';')}}")]'; }} /* * @author : [email protected] * @date : {{=fullYear}}-{{=month}}-{{=days}} * @desc : {{=it.func.join(it.entity.defName,it.entity.comment,'-')}} */ namespace Model.DBModel; /// <summary> /// {{=it.func.join(it.entity.defName,it.entity.comment,';')}} /// </summary> {{=sqlSugartable}} public class {{=it.entity.defKey}} { {{~it.entity.fields:field:index}} /// <summary> /// {{=it.func.join(field.defName,field.comment,';')}} /// </summary> {{? field.primaryKey }} [SugarColumn(IsPrimaryKey = true)] {{?}} {{? field.type=='string' }} public {{=field.type}}? {{=field.defKey}}{ get; set; } {{??}} public {{=field.type}} {{=field.defKey}}{ get; set; } {{?}} $blankline {{~}} }
标签:comment,PDManger,c#,defKey,sqlserver,entity,field,var,defName From: https://www.cnblogs.com/liujian1368928/p/17656818.html