init
This commit is contained in:
18
ContosoUniversity.Models/Instructor.cs
Normal file
18
ContosoUniversity.Models/Instructor.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user