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/Point.cs

44 lines
1008 B
C#

1 month ago
using NewLife.Data;
namespace DB.Entity
2 months ago
{
public class Point:BaseChimsDb
{
/// <summary>
/// plc 点位名称
/// </summary>
public string PointName { get; set; }
/// <summary>
/// plc 点位地址
/// </summary>
public string PointAddress { get; set; }
/// <summary>
/// plc 数据类型 bool float int bit
/// </summary>
public string DataType { get; set; }
3 weeks ago
public string FromType { get; set; }
2 months ago
}
public class PointMapper : SystemEntityTypeBuilder<Point>
{
public PointMapper() : base("Point")
{
}
}
1 month ago
public class PointLogMapper : SystemEntityTypeBuilder<PointLog>
{
public PointLogMapper() : base("PointLog")
{
this.Property(x => x.Msg).HasSize(500);
this.Property(x => x.PointAddress).HasSize(10);
this.Property(x => x.PointName).HasSize(10);
}
}
2 months ago
}