I want to create a class where the ID value can start from 8000 so that it wont conflict with any other IDs from other tables/models. Here's my model
public class Employee
{
[Required]
[Range(8000,10000)]
public long Id { get; set; }
[Required]
[DataType(DataType.Text)]
[Display(Name = "First Name")]
public string FirstName { get; set; }
[Required]
[DataType(DataType.Text)]
[Display(Name = "Last Name")]
public string LastName { get; set; }
[Required]
[DataType(DataType.PhoneNumber)]
[Display(Name = "Phone ")]
public string PhoneNumber { get; set; }
public virtual Address Address { get; set; }
[DataType(DataType.EmailAddress)]
[Display(Name = "E-mail")]
public string Email { get; set; }
[DataType(DataType.Date)]
[Display(Name = "Date of Birth", Prompt="MM/DD/YYYY")]
public DateTime dateOfBirth { get; set; }
public virtual IEnumerable<Availability> availability {get;set;}
}