EmailInfo.cs 1.24 KB
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using ColumnAttribute = System.ComponentModel.DataAnnotations.Schema.ColumnAttribute;

namespace HHECS.Model.Entities
{

    /// <summary>
    /// 调度邮件发送信息表
    /// </summary>
    [Table("emailinfo")]
    public class EmailInfo : BaseEntity<int>
    {
        private DateTime? dateTime;

        /// <summary>
        /// 创建时间
        /// </summary>
        [Required]
        [Column(Order = 2)]
        public DateTime? CreatedTime
        {
            get { return dateTime; }
            set { dateTime = value; }
        }

        /// <summary>
        /// 创建人
        /// </summary>
        [Column(Order = 3)]
        public string CreatedBy { get; set; }

        private string lotNo;

        /// <summary>
        /// 批次号
        /// </summary>
        [Column(Order = 4)]
        public string LotNo
        {
            get { return lotNo; }
            set { lotNo = value; }
        }

        /// <summary>
        /// 发送的邮件类型 
        /// 1:设备报警
        /// 3:保养逾期
        /// </summary>
        [Column(Order = 5)]
        public int Type { get; set; }
    }
}