API
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }