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.

38 lines
961 B

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. using Sevomin.Models.Helpers;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace Sevomin.Models
  6. {
  7. [Table("Avalin")]
  8. public class Avalin : User
  9. {
  10. [Required]
  11. public string CompanyName { get; set; }
  12. [StringLength(12)]
  13. public string NationalId { get; set; }
  14. [StringLength(10)]
  15. public string RegisterId { get; set; }
  16. public string Address { get; set; }
  17. public string CompanyPhoneNumber { get; set; }
  18. [EmailValidation(ErrorMessage="ای میل معتبر نیست")]
  19. public string EMail { get; set; }
  20. public virtual ICollection<Job> Jobs { get; set; }
  21. public Avalin()
  22. {
  23. }
  24. public Avalin(string userName, string companyName) : base(userName)
  25. {
  26. this.CompanyName = companyName;
  27. }
  28. }
  29. }