I need to know how to implement the relationship in the model without using Entity Framework in C#.
Please give me a solution using this ER diagram.
class Student
{
public int studentId { get; set; }
public string studentName { get; set; }
public DateTime DOB { get; set; }
public string street { get; set; }
public string city { get; set; }
public string state { get; set; }
public string PIN { get; set; }
public int courseId { get; set; }
public string courseName { get; set; }
}
class Course
{
public int courseId { get; set; }
public string courseName { get; set; }
}
class StudentHobby
{
public int studentId { get; set; }
public string studentName { get; set; }
public string hobby { get; set; }
}
class Lecturer
{
public int lecturerId { get; set; }
public string lecturerName { get; set; }
public int courseId { get; set; }
public string courseName { get; set; }
}
