using NewLife.Data; namespace DB.Entity { public class Point:BaseChimsDb { /// /// plc 点位名称 /// public string PointName { get; set; } /// /// plc 点位地址 /// public string PointAddress { get; set; } /// /// plc 数据类型 bool float int bit /// public string DataType { get; set; } public string FromType { get; set; } } public class PointMapper : SystemEntityTypeBuilder { public PointMapper() : base("Point") { } } public class PointLogMapper : SystemEntityTypeBuilder { 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); } } }