linq query bind to report
Posted: Thu Jan 03, 2013 7:11 pm
I create a linq query and i want to it display in stireport. what do i do?this code dont work ,with run this code just a empty stireport displayed.
usin(NorthwindEntity db=new NorthwindEntity())
{
var query=from e in db.Employees
where EmployeeName=="Alek"
select e;
stireport1.RegData("myquery",query);
stireport1.Show();
}
usin(NorthwindEntity db=new NorthwindEntity())
{
var query=from e in db.Employees
where EmployeeName=="Alek"
select e;
stireport1.RegData("myquery",query);
stireport1.Show();
}