daelmo wrote:
Hi Jeff,
You could perform a FindMatches on your in-memory collection. And you can add any FieldCompareExpressionPredicate to the PredicateExpression you are using.
If you experiment problems, please be more specific in the search you are trying to achieve
You are correct, I figured out how to do it (posting here in case it helps someone else):
Dim bit As Integer = 128
Dim bitEx As New PredicateExpression
bitEx.AddWithAnd(ScheduleEntryFields.ActionReason.SetExpression(New Expression(ScheduleEntryFields.ActionReason, ExOp.BitwiseAnd, bit)) = bit)
Dim bitMatches As List(Of Integer) = entries.FindMatches(bitEx)
But, it led me to another issue re: applying predicate expressions against discriminator fields of in-memory entities - which is the field I was trying to filter on above and actually the reason why I couldn't find any matches . I'm posting that in another thread...