WPF/EFCore 2.1

2 posts, 1 answers
  1. Joe
    Joe avatar
    3 posts
    Member since:
    Oct 2017

    Posted 26 Aug 2018 Link to this post

    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!!



  2. Answer
    Todor avatar
    520 posts

    Posted 28 Aug 2018 Link to this post

    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.

    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
Back to Top