namespace @Model.NameSpace; /// /// @(@Model.BusName)输出参数 /// public class @(@Model.ClassName)Output { @foreach (var column in Model.TableField){ @:/// @:/// @column.ColumnComment @:/// if(column.EffectType == "fk") { @:public @column.NetType @column.ColumnName { get; set; } @: @:/// @:/// @column.ColumnComment @:/// @:public @(@column.FkColumnNetType) @(@column.FkEntityName)@(@column.FkColumnName) { get; set; } }else if(column.EffectType == "Upload"){ @:public @column.NetType @column.ColumnName { get; set; } @:public SysFile @(@column.ColumnName)Attachment { get; set; } }else{ @:public @column.NetType @column.ColumnName { get; set; } } @: } } @foreach (var column in Model.TableField){ if (@column.EffectType == "ApiTreeSelect"){ @:[SugarTable("@(@column.FkTableName)")] @:public class @(@column.FkEntityName)TreeOutput: EntityBaseId @:{ @:[SugarColumn(ColumnName = "@(@column.DisplayColumn)")] @:public @(@Model.GetColumnNetType(@column.FkTableName,@column.DisplayColumn)) Label { get; set; } @:[SugarColumn(ColumnName = "@(@column.ValueColumn)", IsPrimaryKey = true, IsIdentity = false)] @:public @(@Model.GetColumnNetType(@column.FkTableName,@column.ValueColumn)) Value { get; set; } @:public @(@Model.GetColumnNetType(@column.FkTableName,@column.PidColumn)) @column.PidColumn { get; set; } @:[SugarColumn(IsIgnore = true)] @:public List<@(@column.FkEntityName)TreeOutput> Children { get; set; } @:} } }