With this code:
IPredicateExpression select = new PredicateExpression(CompanyFields.CompanyGroup != null);
I get the error:
The call is ambiguous between the following methods or properties: 'SD.LLBLGen.Pro.ORMSupportClasses.EntityField.operator !=(SD.LLBLGen.Pro.ORMSupportClasses.EntityField, System.Collections.IList)' and 'SD.LLBLGen.Pro.ORMSupportClasses.EntityField.operator !=(SD.LLBLGen.Pro.ORMSupportClasses.EntityField, SD.LLBLGen.Pro.ORMSupportClasses.Expression)'
Also, how would I add a DISTINCT clause to the predicate? I want all the CompanyFields.CompanyGroup 's which are not null and DISTINCT