ShortMessage.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using Abp.Domain.Entities;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. using System.Data.Entity.Spatial;
  7. namespace ShwasherSys.NotificationInfo
  8. {
  9. [Table("ShortMessage")]
  10. public class ShortMessage:Entity<int>
  11. {
  12. public const int SendUserIDMaxLength = 20;
  13. public const int TitleMaxLength = 100;
  14. public const int ContentMaxLength = 3000;
  15. public const int IsDeleteMaxLength = 1;
  16. public const int RecieveUserIdsMaxLength = 400;
  17. /*[Key]
  18. public int MsgID { get; set; }*/
  19. [Required]
  20. [StringLength(SendUserIDMaxLength)]
  21. public string SendUserID { get; set; }
  22. [StringLength(TitleMaxLength)]
  23. public string Title { get; set; }
  24. [StringLength(ContentMaxLength)]
  25. public string Content { get; set; }
  26. [Column(TypeName = "smalldatetime")]
  27. public DateTime? SendTime { get; set; }
  28. [Required]
  29. [StringLength(IsDeleteMaxLength)]
  30. public string IsDelete { get; set; }
  31. [StringLength(RecieveUserIdsMaxLength)]
  32. public string RecieveUserIds { get; set; }
  33. // ÏûÏ¢¼¶±ð
  34. [Required] // 1:Ò»°ã 2:ÖØÒª 3:½ô¼±
  35. public int MsgLevel { get; set; }
  36. }
  37. }