UNIVPLMDataIntegration/Admin.NET/Admin.NET.Web.Entry/wwwroot/template/PartialEntity_Entity.cs.vm

29 lines
699 B
Plaintext
Raw Normal View History


namespace @(@Model.NameSpace).Entity;
/// <summary>
/// 扩展@(@Model.BusName)实体
/// </summary>
public partial class @(@Model.ClassName)
{
@if(Model.TableField.FirstOrDefault(u => u.ColumnName.ToLower() == "name") == null){
@:/// <summary>
@:/// 合约商品树形Name
@:/// </summary>
@:[SugarColumn(IsIgnore = true)]
@:public string Name { get; set; }
}
/// <summary>
/// @(@Model.BusName)子项
/// </summary>
[SugarColumn(IsIgnore = true)]
public List<@(@Model.ClassName)> Children { get; set; }
/// <summary>
/// 是否禁止选中
/// </summary>
[SugarColumn(IsIgnore = true)]
public bool Disabled { get; set; }
}