SysAttachFile.cs 1.6 KB

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