This looks as though its using the self serving capabilities. How does one do this with the adapter.
I have a collection of users that are returned via a predicate bucket expression
IPredicateExpression filter = new PredicateExpression();
filter.Add(PredicateFactory.CompareValue(DAL.UserFieldIndex.UserEmail,ComparisonOperator.Equal,email));
filter.AddWithAnd(PredicateFactory.CompareValue(DAL.UserFieldIndex.UserPassword,ComparisonOperator.Equal,password));
filterbucket.PredicateExpression.Add(filter);
broker.FetchEntityCollection(users,filterbucket);
This returns the collection of users who meet that requirement. In my case, it should always be 1 only. However I'm trying to figure out
- if there is an easy way to determin if a user is found successfully and
- if so, create the UserEntity object and if not
- do something else