﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;



using System.Runtime.Serialization;

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;




namespace MySystemConfig.Model
{
    /// <summary>
    /// 系统配置属性.
    /// </summary>
    [Serializable]
    [DataContract(Namespace = "")]
    [Table("sc_system_config_property")]
    public class SystemConfigProperty
    {


        #region 一对多.

        /// <summary>
        /// 系统配置类型代码
        /// </summary>
        [DataMember]
        [Column("config_type_code")]
        [Display(Name = "系统配置类型代码")]
        [StringLength(32)]
        [Required]
        public string ConfigTypeCode { set; get; }


        /// <summary>
        /// 系统配置类型
        /// </summary>
        public virtual SystemConfigType SystemConfigTypeData { set; get; }


        #endregion 一对多.



        /// <summary>
        /// 系统配置属性名称
        /// </summary>
        [DataMember]
        [Column("property_name")]
        [Display(Name = "系统配置属性名称")]
        [StringLength(64)]
        public string PropertyName { set; get; }


        /// <summary>
        /// 系统配置属性数据类型
        /// </summary>
        [DataMember]
        [Column("property_datatype")]
        [Display(Name = "系统配置属性数据类型")]
        [StringLength(64)]
        public string PropertyDataType { set; get; }


        /// <summary>
        /// 系统配置属性描述
        /// </summary>
        [DataMember]
        [Column("property_desc")]
        [Display(Name = "系统配置属性描述")]
        [StringLength(64)]
        public string PropertyDesc { set; get; }



        /// <summary>
        /// 显示顺序.
        /// </summary>
        [DataMember]
        [Column("display_order")]
        [Display(Name = "显示顺序")]
        public int DisplayOrder { set; get; }



        /// <summary>
        /// 是否可检索.
        /// </summary>
        [DataMember]
        [Column("is_search_able")]
        [Display(Name = "是否可检索")]
        public bool IsSearchAble { set; get; }


    }


}
