Hello,
I am experiencing a pretty strange issue with FindMatches method, which I use pretty often.
Let's examine the following simple code sample:
PersonLoginCollection collection = new PersonLoginCollection();
collection.GetMulti(new PredicateExpression(PersonLoginFields.PersonId == 14512));
List<int> list = collection.FindMatches(new PredicateExpression(PersonLoginFields.Icheck == 0));
list.Count = 0 (correct answer is list.Count = 1)
while code below returns correct result
PersonLoginCollection collection = new PersonLoginCollection();
collection.GetMulti(new PredicateExpression(PersonLoginFields.PersonId == 14512) & new PredicateExpression(PersonLoginFields.Icheck == 0));
collection.Count = 1
I have checked underlying sql query which corresponds to second code chunk. Both predicates are correct.
Can you tell me what's wrong with first method? Aren't they supposed to produce the same result?
It works properly, if I use FindMatches with predicates by the fields other than PersonLoginFields.Icheck.
LLBLGenPro 2.0 (Dec 06, 2006)
Selfservicing
Thank you
Alex