RadEntityFrameworkCoreDataSource include

1 Answer 62 Views
EntityFrameworkCoreDataSource (.Net Core)
Sami
Top achievements
Rank 2
Iron
Iron
Iron
Sami asked on 18 Nov 2022, 12:56 AM

HI:

I have this query:

 _clientes = new QueryableCollectionView(clientes.Include(c => c.PkCiudadNavigation).ToList()); and I what to change it RadEntityFrameworkCoreDataSource , how Can I Specify this include with RadEntityFrameworkCoreDataSource 

Thanks for your help

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 18 Nov 2022, 03:33 PM

Hello Sami,

You can see how to execute an include query when using the RadEntityFrameworkCoreDataSource in the following article:  
https://docs.telerik.com/devtools/wpf/controls/radentityframeworkcoredatasource/entityframeworkcore-mvvm-usage

Basically, you use the QueryableEntityCoreCollectionView instead of the RadEntityFrameworkCoreDataSource. This will allow you to pass the names of the include tables as the last argument of the QueryableEntityCoreCollectionView constructor.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
EntityFrameworkCoreDataSource (.Net Core)
Asked by
Sami
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or