BulletinInfo.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using Abp.Domain.Entities;
  9. namespace ShwasherSys.NotificationInfo
  10. {
  11. [Table("BulletinInfo")]
  12. public class BulletinInfo:Entity<int>
  13. {
  14. public const int BulletinTypeMaxLength = 1;
  15. public const int TitleMaxLength = 100;
  16. public const int PromulgatorMaxLength = 50;
  17. public const int UserIDLastModMaxLength = 20;
  18. [Required]
  19. [StringLength(BulletinTypeMaxLength)]
  20. public string BulletinType { get; set; }
  21. [Required]
  22. [StringLength(TitleMaxLength)]
  23. public string Title { get; set; }
  24. [Column(TypeName = "ntext")]
  25. [Required]
  26. public string Content { get; set; }
  27. [Column(TypeName = "smalldatetime")]
  28. public DateTime? TimeCreated { get; set; }
  29. [Column(TypeName = "smalldatetime")]
  30. public DateTime? TimeLastMod { get; set; }
  31. [StringLength(UserIDLastModMaxLength)]
  32. public string UserIDLastMod { get; set; }
  33. [StringLength(PromulgatorMaxLength)]
  34. public string Promulgator { get; set; }
  35. [Column(TypeName = "smalldatetime")]
  36. public DateTime? PromulgatTime { get; set; }
  37. [Column(TypeName = "smalldatetime")]
  38. public DateTime? ExpirationDate { get; set; }
  39. }
  40. }