Print Page | Close Window

Filtering navigation entities

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2012
Forum Discription: For .NET 4.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=4616
Printed Date: 18-May-2024 at 3:22pm


Topic: Filtering navigation entities
Posted By: cefernan
Subject: Filtering navigation entities
Date Posted: 28-Nov-2013 at 6:03am
I need to load data of people and their phones. My entities are Person and PersonPhone.

In PersonPhone we have a list of phones of some person and only one is set as main phone.

I need to load a list of people including just the main phone. I don't want to retrieve all phone list of each person.

I can't do a query of Person and include PersonPhone because I don't know how to filter an include. Is it possible?





Replies:
Posted By: kimj
Date Posted: 28-Nov-2013 at 8:45am
DevForce doesn't support filtering on an Include, but there is a workaround using a projection which might help. Here's more information - http://drc.ideablade.com/devforce-2012/bin/view/Documentation/query-include-predicate.


Posted By: cefernan
Date Posted: 28-Nov-2013 at 10:41am
Just as I expected!

Thanks Kim.



Print Page | Close Window