using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StudentModels
{
    public class Teacher
    {
        public int TeacherID { get; set; }
        [MaxLength(128), MinLength(1)]
        public String FirstName { get; set; }
        [MaxLength(128), MinLength(1)]
        public String LastName { get; set; }
        public Boolean IsMale { get; set; }

        public virtual List<Subject> Subjects { get; set; }

        [NotMapped]
        public String FirstLastName
        {
            get { return FirstName + " " + LastName; }
        }
        [NotMapped]
        public String LastFirstName
        {
            get { return LastName + " " + FirstName; }
        }
    }
}
