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

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Sevomin.Models.Helpers;
namespace Sevomin.Models
{
[Table("Avalin")]
public class Avalin : User
{
[Required]
public string CompanyName { get; set; }
[StringLength(12)]
public string NationalId { get; set; }
[StringLength(10)]
public string RegisterId { get; set; }
public string Address { get; set; }
public string CompanyPhoneNumber { get; set; }
[EmailValidation(ErrorMessage="ای میل معتبر نیست")]
public string EMail { get; set; }
public virtual ICollection<Job> Jobs { get; set; }
public Avalin()
{
}
public Avalin(string userName, string companyName) : base(userName)
{
this.CompanyName = companyName;
}
}
}