You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

63 lines
1.7 KiB

using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using ChangkeTec.SDMS.Model.Attributes;
using ChangkeTec.SDMS.Model.Base;
using ChangkeTec.SDMS.Model.Enums;
namespace ChangkeTec.SDMS.Model.DataCenterTables
{
[Description("系统参数表")]
public class TA_CONFIG : ITable, IEnable
{
[IsDataGridColum(true, 1)]
[Index("IndexConfig", Order = 0, IsUnique = true, IsClustered = false)]
[Description("参数名称")]
[Required(AllowEmptyStrings = true)]
[StringLength(50)]
public string ConfigName { get; set; }
[IsDataGridColum(true, 2)]
[Required(AllowEmptyStrings = true)]
[Description("参数值")]
[StringLength(50)]
public string ConfigValue { get; set; }
[IsDataGridColum(true, 3)]
[Description("参数说明")]
[StringLength(500)]
public string ConfigDesc { get; set; }
[IsDataGridColum(true, 4)]
[Required(AllowEmptyStrings = true)]
[Description("参数类型")]
public EnumConfigType ConfigType { get; set; } = EnumConfigType.STRING;
#region 公共字段
[Description("创建人")]
[Required(AllowEmptyStrings = true)]
[StringLength(50)]
public string CreateUser { get; set; } = "";
[Description("创建时间")]
public DateTime CreateTime { get; set; } = DateTime.Now;
[Description("备注")]
public string Remark { get; set; }
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int UID { get; set; }
[Key]
public Guid GUID { get; set; } = Guid.NewGuid();
#endregion
public bool Enable { get; set; }
}
}