Can you connect a WPF datagrid to an EF core OData service?

1 Answer 254 Views
GridView
Josh
Top achievements
Rank 1
Josh asked on 24 Aug 2022, 03:56 PM
I am looking into migrating from an EF backend to an EF core backend which I already have stood up. I seem to be running into an issue though when retrieving data from the front end. I keep getting a bad response payload from the QueryableDataServiceCollectionView when I make my data calls. Is this the collection I should be using or should I be using something different?

1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 29 Aug 2022, 01:59 PM

Hello Josh,

With the currently presented information, I am not sure that I can correctly pinpoint the reason behind the bad payload when using the RadDataServiceDataSource control.

As an alternative, may I ask if you could give the RadEntityFrameworkCoreDataSource control a try, instead of RadDataServiceDataSource? I am suggesting this because the RadEntityFrameworkCoreDataSource is a great choice when using Entity Framework Core to retrieve the data. The control supports filtering, sorting, grouping, paging, editing, and more.

More information regarding the RadEntityFrameworkCoreDataSource control and supported features can be found at the following link:

WPF EntityFrameworkCoreDataSource | Overview | Telerik UI for WPF

I hope the provided information will be of help to you.

Regards,
Stenly
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


Josh
Top achievements
Rank 1
commented on 29 Aug 2022, 07:41 PM

I seem to be unable to add that control. I was looking at it but I don't have access to the reference for it. I did find that my payload was in fact not coming back as odata context but just plain json. I have updated my service accordingly and I am able to retrieve data properly now though. Thanks!
Tags
GridView
Asked by
Josh
Top achievements
Rank 1
Answers by
Stenly
Telerik team
Share this question
or