ShortMsgDetail.cs 732 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using Abp.Domain.Entities;
  6. namespace ShwasherSys.NotificationInfo
  7. {
  8. [Table("ShortMsgDetail")]
  9. public class ShortMsgDetail:Entity<int>
  10. {
  11. public const int RecvUserIDMaxLength = 20;
  12. public const int IsReadMaxLength = 1;
  13. /*[Key]
  14. public int DetailID { get; set; }*/
  15. public int MsgID { get; set; }
  16. [Required]
  17. [StringLength(RecvUserIDMaxLength)]
  18. public string RecvUserID { get; set; }
  19. [Required]
  20. [StringLength(IsReadMaxLength)]
  21. public string IsRead { get; set; }
  22. }
  23. }