ContractTaskAttachmentDto.cs 818 B

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