This is a migrated thread and some comments may be shown as answers.

Creating a report using EntityDiagrams and LINQ

2 Answers 79 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard M
Top achievements
Rank 1
Richard M asked on 05 Jan 2011, 05:37 PM
I would like to create a report using a specific LINQ query with a where clause.  I cannot figure out how to bind my Report1 to that LINQ query.  Is it after the InitializeComponent(); in the code-behind page?  Or is it in its own function?  After I bind that, how do I bind controls, such as a textbox, to that function in the designer page?  Do you have a sample project that I can use as an example?

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 10 Jan 2011, 05:25 PM
Hi Richard M,

The EntityDataSource component enables data items to connect to an ADO.NET Entity Data Model. This allows seamless integration of Telerik Reporting with applications or web sites that utilize the ADO.NET Entity Framework.

In order to use a LINQ query with where clause, our suggestion is to use a method, because it is possible to execute some custom business logic when retrieving data for the report. If the specified method has arguments, the EntityDataSource component allows you to pass parameters to those arguments via the Parameters collection.

For more details and code snippets check out the Connecting to an Entity Data Model with the EntityDataSource component help article.

All the best,
Peter
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Richard M
Top achievements
Rank 1
answered on 11 Jan 2011, 06:06 PM
Thanks, I will try that.
Tags
General Discussions
Asked by
Richard M
Top achievements
Rank 1
Answers by
Peter
Telerik team
Richard M
Top achievements
Rank 1
Share this question
or