Hi
I'm trying to build the where clause "STRING_FIELD = :string_field":
predicateExpression.Add(PredicateFactory.CompareValue(SomFieldIndex.StringField, ComparisonOperator.Equal, stringValue));
It works fine for a non-empty stringValue, but when initializing stringValue to be String.Empty the where clause generated is " STRING_FIELD = '' ", therefore no record is retrieved - that's because empty strings are saved in Oracle DB as nulls.
I would think that LLBLGen will notice this scenario and generate "STRING_FIELD IS NULL", but it doesn't.
Is there an elegant solution for this problem? I don't want to set a condition (if stringValue == ""...else...) everytime I build a query with string fields.