DEntityOutput.cs 980 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. namespace YBEE.EQM.Application;
  2. public abstract class DEntityOutput : DEntityOutput<int>
  3. {
  4. }
  5. public abstract class DEntityOutput<TKey>
  6. {
  7. /// <summary>
  8. /// 主键
  9. /// </summary>
  10. [Required]
  11. public virtual TKey Id { get; set; }
  12. /// <summary>
  13. /// 创建时间
  14. /// </summary>
  15. [Required]
  16. public virtual DateTime CreateTime { get; set; }
  17. /// <summary>
  18. /// 更新时间
  19. /// </summary>
  20. public virtual DateTime? UpdateTime { get; set; }
  21. /// <summary>
  22. /// 创建人ID
  23. /// </summary>
  24. [Required]
  25. public virtual int CreateSysUserId { get; set; }
  26. /// <summary>
  27. /// 修改者Id
  28. /// </summary>
  29. public virtual int? UpdateSysUserId { get; set; }
  30. /// <summary>
  31. ///创建人
  32. /// </summary>
  33. [Required]
  34. public virtual SysUserLiteOutput CreateSysUser { get; set; }
  35. /// <summary>
  36. /// 修改人
  37. /// </summary>
  38. public virtual SysUserLiteOutput UpdateSysUser { get; set; }
  39. }