using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DB.Entity { public class AlarmLog: BaseChimsDb { public string ShowTime { get; set; } public string Msg { get; set; } public int Alarm { get; set; } public int Count { get; set; } = 0; } public class AlarmLogView { public long ID { get; set; } public string ShowTime { get; set; } public string Msg { get; set; } public string Alarm { get; set; } public int Count { get; set; } = 0; } public class AlarmLogMapper : SystemEntityTypeBuilder { public AlarmLogMapper() : base("AlarmLog") { this.Property(x => x.Msg).HasSize(100); this.Property(x => x.ShowTime).HasSize(100); } } }