PierreCB wrote:
LogFields.LogOut.IsNotNull returns an IPredicate.
LogFields.LogOut.IsNull() returns a boolean
There's a property 'IsNull', not sure if VB.NET allows you to access that property with () as if it's a method call, in case it does, that's the reason you see this, sadly not something we can fix...
I have to pass an "IEntityFieldCore" object to the function ( LogFields.LogOut.IsNull(field as IEntityFieldCore)) to get an IPredicate.
How do I get an IEntityFieldCore object?
You can do:
Dim predicate = IsNullPredicateProducers.IsNull(LogFields.LogOut)
Another way is the old fashioned way:
Dim predicate = new FieldCompareNullPredicate(LogFields.LogOut)
or
Dim predicate = LogFields.LogOut = Nothing