PLCRecord.cs 641 B

1234567891011121314151617181920212223242526
  1. using FreeSql.DataAnnotations;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace xicheji
  8. {
  9. public class PLCRecord
  10. {
  11. /// <summary>
  12. /// 数据库主键Id, 自增, 无需赋值
  13. /// </summary>
  14. [Column(IsIdentity = true)]
  15. public int Id { get; set; }
  16. /// <summary>
  17. /// 单次的数据
  18. /// </summary>
  19. public byte[] Data { get; set; }
  20. [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
  21. public DateTime CreateTime { get; set; }
  22. }
  23. }