SysAttachFileBase.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System.ComponentModel.DataAnnotations;
  2. using Abp.Domain.Entities;
  3. using Abp.Domain.Entities.Auditing;
  4. namespace IwbZero.Authorization.Base.SystemInfo
  5. {
  6. public class SysAttachFileBase : CreationAuditedEntity<int>, IMustHaveTenant
  7. {
  8. public const int AttachNoMaxLength = 32;
  9. public const int TableNameMaxLength = 50;
  10. public const int ColumnNameMaxLength = 50;
  11. public const int SourceKeyMaxLength = 50;
  12. public const int FileTitleMaxLength = 50;
  13. public const int FileNameMaxLength = 50;
  14. public const int FilePathMaxLength = 500;
  15. public const int FileTypeMaxLength = 20;
  16. public const int FileExtMaxLength = 10;
  17. public const int DescriptionMaxLength = 500;
  18. [MaxLength(AttachNoMaxLength)]
  19. public string AttachNo { get; set; }
  20. [MaxLength(TableNameMaxLength)]
  21. public string TableName { get; set; }
  22. [MaxLength(ColumnNameMaxLength)]
  23. public string ColumnName { get; set; }
  24. [MaxLength(SourceKeyMaxLength)]
  25. public string SourceKey { get; set; }
  26. [MaxLength(FileTitleMaxLength)]
  27. public string FileTitle { get; set; }
  28. [MaxLength(FileNameMaxLength)]
  29. public string FileName { get; set; }
  30. [MaxLength(FilePathMaxLength)]
  31. public string FilePath { get; set; }
  32. [MaxLength(FileTypeMaxLength)]
  33. public string FileType { get; set; }
  34. [MaxLength(FileExtMaxLength)]
  35. public string FileExt { get; set; }
  36. [MaxLength(DescriptionMaxLength)]
  37. public string Description { get; set; }
  38. public int TenantId { get; set; }
  39. }
  40. }