Bind Entity Framework DbSet object to DevExpres xtrareports

142 views Asked by At

I am trying to bind an entity framework DbSet to DevExpress XtraReports, but I get only one row in the generated PDF inctead of the whole dataset.

I used the following code:

var report = new MyReport();

var ds = myDbContext.Students.ToList();
report.DataSource = ds;

I tried to use simple queries it works, but I do need to use my EF linq statements, instead of filling my code with static queries.

Any Suggestions?

0

There are 0 answers