Hi,
I'm trying to do a bitwise compare expression (adapter, sql server) similar to :
select lastname, firstname, attributes from Candidate
where Attributes = (Attributes | 1)
the code I've arrived at is:
expression.Add(new FieldCompareExpressionPredicate(
candidate.Fields["Attributes"], null,
ComparisonOperator.Equal,
new Expression(candidate.Fields["Attributes"], ExOp.BitwiseOr, attributes)));
When this hits the dataccess adapter I get the following exception:
Object reference not set to an instance of an object.
at SD.LLBLGen.Pro.ORMSupportClasses.Expression.ToQueryText(Int32& uniqueMarker, Boolean inHavingClause)
at SD.LLBLGen.Pro.ORMSupportClasses.FieldCompareExpressionPredicate.ToQueryText(Int32& uniqueMarker, Boolean inHavingClause)
I've verified all the values I'm setting are indeed set, and am at a loss as to why this doesn't work. Any ideas what I'm missing?
Thanks,
Mike