w2bst2r
8/10/2018 - 1:11 PM

Candidate Model

This is an example of a database model using Database first approach in entity framework Data annotaitons are used with each field

    public class Candidates
    {
        [Display(Name = "ID")]
        public int ID { get; set; }
        [Display(Name = "Name")]
        public string Name { get; set; }
        [Display(Name = "Surname")]
        public string Surname { get; set; }
        [Display(Name = "Email")]
        public string Email { get; set; }
        [Display(Name = "Position")]
        public int PositionID { get; set; }
        [Display(Name = "Grade")]
        public int GradeID { get; set; }
        [Display(Name = "Manager")]
        public int ManagerID { get; set; }
        [Display(Name = "Specialist")]
        public int SpecialistID { get; set; }
        [Display(Name = "Survey Date")]
        public DateTime SurveyDate { get; set; }
        [Display(Name = "Language")]
        public string Language { get; set; }
        [Display(Name = "State")]
                public string State { get; set; }
    }