BaseEntity.cs 893 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.ComponentModel;
  3. using System.ComponentModel.DataAnnotations;
  4. namespace XYY.Core.Standard
  5. {
  6. public class BaseEntity
  7. {
  8. /// <summary>
  9. /// 主键
  10. /// </summary>
  11. [Key]
  12. public int Id { get; set; }
  13. /// <summary>
  14. /// 创建人
  15. /// </summary>
  16. public string CreateUserName { get; set; }
  17. /// <summary>
  18. /// 创建时间
  19. /// </summary>
  20. public DateTime? CreateTime { get; set; }
  21. /// <summary>
  22. /// 更新人
  23. /// </summary>
  24. public string UpdateUserName { get; set; }
  25. /// <summary>
  26. /// 更新时间
  27. /// </summary>
  28. public DateTime? UpdateTime { get; set; }
  29. /// <summary>
  30. /// 备注
  31. /// </summary>
  32. [DisplayName("备注")]
  33. public string Remark { get; set; }
  34. }
  35. }