C# 水晶报告及;EF代码优先关系

C# 水晶报告及;EF代码优先关系,c#,crystal-reports,ef-code-first,C#,Crystal Reports,Ef Code First,注意:我是Crystal reports的新手,因为我在以前的工作中一直使用ActiveReports,但是我的当前客户坚持使用Crystal 我想做一个基本的报告,列出来自多个EF CodeFirst实体的数据。我可以通过执行以下操作对我需要的数据进行IEnumerable: var data = from r in _db.Registrations select new AdminReportViewModel

注意:我是Crystal reports的新手,因为我在以前的工作中一直使用ActiveReports,但是我的当前客户坚持使用Crystal

我想做一个基本的报告,列出来自多个EF CodeFirst实体的数据。我可以通过执行以下操作对我需要的数据进行IEnumerable:

var data = from r in _db.Registrations
                       select new AdminReportViewModel
                                  {
                                      Presentation1 = r.Presentation1.Name,
                                      Presentation2 = r.Presentation2.Name,
                                      Presentation3 = r.Presentation3.Name,
                                      Presentation4 = r.Presentation4.Name,
                                      StudentName = r.Student.FullName,
                                      StudentSession = r.Student.Session.ToString(),
                                      TeacherName = r.Student.Teacher.FullName
                                  };
但是,我似乎无法像使用注册对象一样将此AdminReportViewModel对象绑定到报表。它要求我提供一个xml模式文件。但是,如果绑定注册对象,则只能获取StudentId,而不能获取相关的Student实体

有没有更好的方法,将报表绑定到我的所有注册对象,并将对象的相关实体加载到标签中