DB_Error.cs 1.19 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
using SQLite;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FLY.OBJComponents.Server.Model
{
    /// <summary>
    /// 异常记录
    /// </summary>
    [Table("Error")]
16
    public class DB_Error:IDbBase
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
    {
        [Key]
        [PropertyIndex(0)]
        public Int64 ID { get; set; }

        /// <summary>
        /// 发生的时间
        /// </summary>
        [PropertyIndex(1)]
        public DateTime Time { get; set; }

        /// <summary>
        /// 异常代码
        /// </summary>
        [PropertyIndex(2)]
        public int ErrCode { get; set; }

        /// <summary>
        /// true=异常是发生了,false=异常关闭
        /// </summary>
        [PropertyIndex(3)]
        public bool IsOn { get; set; }

        /// <summary>
        /// 异常描述
        /// </summary>
        [PropertyIndex(4)]
        public string Descrption { get; set; }

        /// <summary>
        /// 附加信息
        /// </summary>
        [PropertyIndex(5)]
        public string Accessory { get; set; }
    }
}