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

WPF/EFCore 2.1

1 Answer 94 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 26 Aug 2018, 01:01 PM

Can someone provide some reference to using Telerik Reporting with WPF & EF Core 2.1, maybe a simple example. I've tried creating Report Library, when I go to configure my entitydatasource, I select my existing data connection click next and no DBContext is found even thought I have several? Being new to C# Telerik documentation on the subject is not any use to me..

 

Thanks in advance!!

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Todor
Telerik team
answered on 28 Aug 2018, 12:34 PM
Hi Joe,

We have answered your question in the support ticket you opened on the same topic.
For the benefit of our community I will post a summary of the response also here:

Telerik Reporting EntityDataSource component does not support Entity Framework Core, hence we do not provide an example with EF Core 2.1.
As a workaround you can use the ObjectDataSource component to provide data to the report data items. Internally, the data providing method (DataMember) can fetch the data utilizing Entity Framework Core.

For a working WPF Demo you can use our examples that come with the installation of Telerik Reporting. The C# examples can be found in (Telerik Reporting installation folder)\Examples\CSharp (for example C:\Program Files (x86)\Progress\Telerik Reporting R2 2018\Examples\CSharp). The WPF example is the project CSharp.WpfDemo.
The set-up and usage of a ObjectDataSource component is demonstrated in the CSharp.ReportLibrary project within the examples -> ListBoundReport.cs in the DataBinding folder. Note that the DataSource is Cars class, and as DataMember is used the constructor of the same class.

Regards,
Todor
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Joe
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or