using System; using System.Collections.Generic; using SqlSugar; namespace ${options.ModelsNamespace}.Models { /// /// ${genTable.FunctionName},数据实体对象 /// /// @author ${replaceDto.Author} /// @date ${replaceDto.AddTime} /// [SugarTable("${replaceDto.TableName}")] public class ${replaceDto.ModelTypeName} { $foreach(item in genTable.Columns) /// /// 描述 : ${item.ColumnComment} /// 空值 :$if(item.IsRequired == "True") false $else true $end /// $if(item.IsPk || item.IsIncrement) [SqlSugar.SugarColumn(IsPrimaryKey = ${item.IsPk.ToString().ToLower()}, IsIdentity = ${item.IsIncrement.ToString().ToLower()})] $end public $item.CsharpType$item.RequiredStr $item.CsharpField { get; set; } ${end} } }