StudentTipInfo.cs 940 B

1234567891011121314151617181920212223242526272829303132333435
  1. using Abp.Domain.Entities.Auditing;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using WeApp.Authorization.Users;
  5. namespace WeApp.BasicInfo
  6. {
  7. [Table("Bs_StudentTips")]
  8. public class StudentTipInfo : FullAuditedEntity<string, User>
  9. {
  10. public const int NameMaxLength = 50;
  11. public const int RoleNameMaxLength = 50;
  12. public const int ContentMaxLength = 200;
  13. /// <summary>
  14. /// 简称
  15. /// </summary>
  16. [MaxLength(NameMaxLength)]
  17. public string Name { get; set; }
  18. /// <summary>
  19. /// 角色名称 (不填写,从 TrainingRoleInfo 中拉取)
  20. /// </summary>
  21. [MaxLength(RoleNameMaxLength)]
  22. public string RoleName { get; set; }
  23. /// <summary>
  24. /// 内容
  25. /// </summary>
  26. [MaxLength(ContentMaxLength)]
  27. public string Content { get; set; }
  28. }
  29. }