Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Student
- {
- [Key]
- public int ID {get;set;}
- public string Name {get;set;}
- public virtual ICollection<Class> Classes {get;set;}
- }
- public class Class
- {
- [Key]
- public int ID {get;set;}
- public Student Student {get;set;}
- public DateTime EnrollmentDate {get;set;}
- public string Name {get;set;} // this comes from the Courses data table
- }
Add Comment
Please, Sign In to add comment