init
This commit is contained in:
17
ContosoUniversity.Models/OfficeAssignment.cs
Normal file
17
ContosoUniversity.Models/OfficeAssignment.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace ContosoUniversity.Models
|
||||
{
|
||||
public class OfficeAssignment
|
||||
{
|
||||
[Key]
|
||||
[ForeignKey("Instructor")]
|
||||
public int InstructorID { get; set; }
|
||||
[StringLength(50)]
|
||||
[Display(Name = "Office Location")]
|
||||
public string Location { get; set; }
|
||||
|
||||
public virtual Instructor Instructor { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user