using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace CodeFirstMigrations.Model
{
    public class Department
    {
        [Key]
        public int DepartmentNo { get; set; }
        [MaxLength(50)]
        public string DepartmentName { get; set; }
        [MaxLength(50)]
        public string Location { get; set; }
        // A Department can contain multiple Employees
        public List<Employee> Employees { get; set; }

    }
}
