API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Person.cs 728B

12345678910111213141516171819202122232425262728
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. namespace UnivateProperties_API.Model.Users
  4. {
  5. public class Person : BaseEntity
  6. {
  7. #region Constructor
  8. public Person()
  9. {
  10. }
  11. #endregion Constructor
  12. #region Properties
  13. [ForeignKey("User")]
  14. public int UserId { get; set; }
  15. public string Name { get; set; }
  16. public string Surname { get; set; }
  17. public string Email { get; set; }
  18. [Phone]
  19. public string Telephone { get; set; }
  20. [Phone]
  21. public string CellNumber { get; set; }
  22. public virtual User User { get; set; }
  23. #endregion Properties
  24. }
  25. }