我有一个标准的学生名单。
public class Standard
{
public int StandardId { get; set; }
public string Name { get; set; }
public List<Student> Students { get; set; }
}
public class Student
{
public string Id { get; set; }
public string Name { get; set; }
public int Age { get; set; }
}
在 Student 类中没有像StandardId这样的成员 。那么,如果我们将学生列表与标准分开,我们
如何在每个学生实体中显示StandardId呢?