A quick question regarding the navigation of the object graph:
Say that I have an object, User. And from that object there is a relation to a collection of objects of type say, Preference. So given this you can do the following:
User user = PersistenceManager.DefaultManager.GetEntity<User>(...some query)
... And from there you can:
user.Preferences which returns a ReadOnlyEntityList<Preference>
... Now, my question is, is there anyway that you can then search this list on the key provided in the Preference Table? Or do you have to go back and use the PersistenceManager with a different more specific query to return the data you want? And if so, how would one formulate such a query?
I may be missing some vital concept (which I'm pretty sure that I am), but it would seem that the user.Preferences List is only useful if you want to bind the list to something. I on the other hand, would like to be able to navigate via code to the Preferences List and then perform some logic on specific items in the list. It is possible to iterate through the list and find the items of interest, but that just doesn't seem right.
Thanks.
Edited by jozza - 17-Jul-2007 at 11:49pm