I have created a sample application in which there are two one-to-many relationships between two POCO classes and the design is as follows:
Code: Select all
public class Institution
{
[Key]
public int RowId { get; set; }
}
public class School : Institution
{
public string Name { get; set; }
public List <Student> Students { get; private set; }
public List <Student> Alumni { get; private set; }
}
public class Student
{
public List <Course> Courses { get; set; }
[Key]
public int RowId { get; set; }
}
Please let me know if there is any solution for this issue or is there any workaround to this issue?
Thanks,
Pankaj Sachdeva