UserAddress.cs 741 B

123456789101112131415161718192021222324252627
  1. using MTWorkHR.Core.Entities.Base;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using System.ComponentModel.DataAnnotations;
  4. using MTWorkHR.Core.Entities;
  5. namespace MTWorkHR.Infrastructure.Entities
  6. {
  7. public class UserAddress : AuditEntity
  8. {
  9. public string UserId { get; set; }
  10. [ForeignKey("UserId")]
  11. public ApplicationUser User { get; set; }
  12. public long? CountryId { get; set; }
  13. public long? CityId{ get; set; }
  14. [ForeignKey("CountryId")]
  15. public CountryLookup? Country { get; set; }
  16. [ForeignKey("CityId")]
  17. public City? City { get; set; }
  18. public string? PostalCode { get; set; }
  19. public string? AddressDesc{ get; set; }
  20. }
  21. }