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

Trouble creating simple report from Entity Framework edmx file

2 Answers 165 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 16 May 2011, 05:29 PM
Hi all,

I'm actually working with Entity Framework Code First (DB created from coded model), but believe that Telerik Reporting doesn't yet support this. Therefore, I've created myself an edmx file from the SQL database for this purpose.

When I create a new report, the wizard launches and I'm able to select a new Entity Data Source, select the connection created with the edmx file and the context. After that, I'm presented with the Choose an Object Context Member dialog, asking me to select a member of the object context that will return data. Unfortunately, I'm unsure as to what I should be selecting at this point. Say I have a model named Products. Right now, all I'm interested in is returning every product. How would I go about this? Selecting the Products model from the dialog and clicking Finish returns an "Exception has been thrown by the target of a invocation" error.

Any help much appreciated!

2 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 17 May 2011, 05:07 PM
Anyone?
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 19 May 2011, 05:10 PM
Check the following forum thread for more info: http://www.telerik.com/community/forums/reporting/telerik-reporting/entitydatasource-wizard-an-object-context-member-doesn-t-show.aspx

Cheers!
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Massimiliano Bassili
Top achievements
Rank 1
Share this question
or