How can we define the filter to for example get the profile instances that match a set of Names?
I know how to do this hardcoded, but I want to pass a list of selected names and based on this compose an OR filter.
var filterByProfileName = ProfileInstanceExposers.Name.Equal("profile1" )
.OR(ProfileInstanceExposers.Name.Equal("profile2"));
Hi Mieke,
You can use generic filtering.
a pseudo code example, based on your use-case:
var selectedProfileNames = new string[] { "profile1", "profile2" };
var filter = new ORFilterElement<ProfileInstance>(selectedProfileNames.Select(name =>ProfileInstanceExposers.Name.Equal(name )).ToArray());