I have a QueryableCollectionView which is bind with the entity and the entity has a child entity collection. I am filtering this queryable collection by creating filter descriptors and adding them to the collections.
For string and boolean field it is very easy to create a filter descriptor like this:
Dim FolderIDFD As New FilterDescriptor
FolderIDFD.Member = "FolderID"
FolderIDFD.Operator = FilterOperator.IsEqualTo
FolderIDFD.Value = SelectedUserFolder.Id
MediaCollectionView.FilterDescriptors.Add(FolderIDFD)
But for filtering an entitycollection field how can be this possible?
i want to filter a field which child of child of the collection, for this first i have to ensure that the child entity collection should not be nothing
in first condition.
Than how can i implement the filter descriptor for an EntityCollection field?
I have also used
Dim UnProfiledFD As New FilterDescriptor
UnProfiledFD.Member = "TaggedMediums"
UnProfiledFD.Operator = FilterOperator.IsNotNull
MediaCollectionView.FilterDescriptors.Add(UnProfiledFD)
but it is not working for entityCollection field.
For string and boolean field it is very easy to create a filter descriptor like this:
Dim FolderIDFD As New FilterDescriptor
FolderIDFD.Member = "FolderID"
FolderIDFD.Operator = FilterOperator.IsEqualTo
FolderIDFD.Value = SelectedUserFolder.Id
MediaCollectionView.FilterDescriptors.Add(FolderIDFD)
But for filtering an entitycollection field how can be this possible?
i want to filter a field which child of child of the collection, for this first i have to ensure that the child entity collection should not be nothing
in first condition.
Than how can i implement the filter descriptor for an EntityCollection field?
I have also used
Dim UnProfiledFD As New FilterDescriptor
UnProfiledFD.Member = "TaggedMediums"
UnProfiledFD.Operator = FilterOperator.IsNotNull
MediaCollectionView.FilterDescriptors.Add(UnProfiledFD)
but it is not working for entityCollection field.