You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CaiQie/DB/Entity/AlarmLog.cs

37 lines
885 B
C#

2 weeks ago
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<AlarmLog>
{
public AlarmLogMapper() : base("AlarmLog")
{
this.Property(x => x.Msg).HasSize(100);
this.Property(x => x.ShowTime).HasSize(100);
}
}
}