Linq to Sql in Web

Stimulsoft Reports.WEB discussion
Post Reply
hasithalk
Posts: 3
Joined: Tue Oct 18, 2011 10:29 pm
Location: Sri Lanka

Linq to Sql in Web

Post by hasithalk »

Hi,

I was trying to build a report using Linq to Sql. I did a sample using a example posted in Stimulsoft knowledgebase "How to use LinqToSql in your products?". My code as follows, but its not working for me. I tried it in Windows forms and it works.

var report = new StiReport();

var dataContext = new DataContext();

var custQuery =
from cust in dataContext.Customers.AsEnumerable()
where cust.City == "London"
select cust;

report.RegData("Customer", custQuery);

//report.RegBusinessObject("Customer2", custQuery);

webDesigner.Design(report);


Appreciate your help on this.

Thanks,

Hasitha.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Linq to Sql in Web

Post by Alex K. »

Hello,

Please send us a sample project with test data which reproduces the issue for analysis.

Thank you.
Post Reply