City.cs 754 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using MTWorkHR.Core.Entities.Base;
  9. namespace MTWorkHR.Core.Entities
  10. {
  11. public class City : Entity
  12. {
  13. [Required]
  14. [MaxLength(250)]
  15. [Filter]
  16. public string NameAr { get; set; }
  17. [Required]
  18. [MaxLength(250)]
  19. [Filter]
  20. public string NameEn { get; set; }
  21. public string NameFr { get; set; }
  22. public long CountryId { get; set; }
  23. [ForeignKey("CountryId")]
  24. public CountryLookup? Country { get; set; }
  25. public string Code { get; set; }
  26. }
  27. }