ContractTaskAttachmentDto.cs 737 B

12345678910111213141516171819202122232425262728
  1. using MTWorkHR.Core.Entities.Base;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using System.ComponentModel.DataAnnotations;
  4. namespace MTWorkHR.Application.Models
  5. {
  6. public class ContractTaskAttachmentDto : EntityDto
  7. {
  8. public long ContractTaskId { get; set; }
  9. public long? AttachmentTypeId { get; set; }
  10. [ForeignKey("AttachmentTypeId")]
  11. public AttachmentType AttachmentType { get; set; }
  12. [MaxLength(250)]
  13. public string? FileName { get; set; }
  14. [MaxLength(250)]
  15. public string? OriginalName { get; set; }
  16. public byte[] Content { get; set; }
  17. public string? FilePath { get; set; }
  18. public string? ContentType { get; set; }
  19. }
  20. }