liaoxujun@qq.com
2024-02-19 c32275f697e1541694836c47e1682e3291673dbc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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>();
    }
}