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.
44 lines
1008 B
C#
44 lines
1008 B
C#
using NewLife.Data;
|
|
|
|
namespace DB.Entity
|
|
{
|
|
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; }
|
|
|
|
|
|
public string FromType { get; set; }
|
|
}
|
|
|
|
|
|
public class PointMapper : SystemEntityTypeBuilder<Point>
|
|
{
|
|
public PointMapper() : base("Point")
|
|
{
|
|
|
|
}
|
|
}
|
|
|
|
|
|
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);
|
|
}
|
|
}
|
|
|
|
} |