WPF的项目:我有这么一个类
- public class School
- {
- public string SchoolName { get; set; }
- public string SchoolName { get; set; }
- public List<Teacher> teacher { get; set; }
- }
- public class Teacher
- {
- public string TeacherName { get; set; }
- public int TeacherAge { get; set; }
- }
复制代码
可以直接把school实例传给页面报表作为数据源吗?怎么做,在页面报表中如何获得SchoolName ,SchoolName ,TeacherName ,TeacherAge ? |
|