18 lines
583 B
C#
18 lines
583 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace ContosoUniversity.Models
|
|
{
|
|
public class Instructor : Person
|
|
{
|
|
[DataType(DataType.Date)]
|
|
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
|
|
[Display(Name = "Hire Date")]
|
|
public DateTime HireDate { get; set; }
|
|
|
|
public virtual ICollection<Course> Courses { get; set; }
|
|
public virtual OfficeAssignment OfficeAssignment { get; set; }
|
|
}
|
|
} |