using Microsoft.EntityFrameworkCore;
|
using System;
|
using System.Collections.Generic;
|
using System.ComponentModel.DataAnnotations;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using WalkingTec.Mvvm.Core;
|
|
namespace cy_scdz.Model.Set
|
{
|
[Display(Name = "设置字典")]
|
public class Dictionary: TreePoco<Dictionary>
|
{
|
/// <summary>
|
/// 名称
|
/// </summary>
|
[Display(Name = "名称")]
|
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
[Comment("名称")]
|
[Required]
|
public string Name { get; set; }
|
/// <summary>
|
/// 名称
|
/// </summary>
|
[Display(Name = "Key")]
|
[Comment("Key")]
|
[Required]
|
public string Key { get; set; }
|
|
|
/// <summary>
|
/// 值
|
/// </summary>
|
[Display(Name = "值")]
|
[StringLength(200, ErrorMessage = "Validate.{0}stringmax{1}")]
|
[Comment("值")]
|
public string Value { get; set; }
|
|
|
/// <summary>
|
/// 是否有效
|
/// </summary>
|
[Display(Name = "是否有效")]
|
[Comment("是否有效")]
|
public bool IsEn { get; set; }= true;
|
/// <summary>
|
/// 子节点
|
/// </summary>
|
public virtual ICollection<Dictionary> Children { get; set; } = new List<Dictionary>();
|
}
|
}
|