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.

39 lines
1.0 KiB

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