when work with a collection I often want to filter out the result on a specific parameter in the entyties.
an example without filter:
repeater1.datasource = currentUser.ForumThreadsCollectionViaMyThreads
this works just fine.
but if I want a filter on for example Mythreads.isFavourite = true I have to use the getMulti method.
correct?
an example with filter:
dim filter blablabla
currentUser.ForumThreadsCollectionViaMyThreads.getMulti(filter)
repeater1.datasource = currentUser.ForumThreadsCollectionViaMyThreads
Is there an easier way of doing this?
Now, if this is the only way. I have another problem.
when I use this way of filtering. the relation between, in this case currentUser and MyThreads gets lost...
I then have to add myThreads.user = currentUser to my filter...