select * from vw_View
WHERE unitID IN (SELECT [unitID] FROM uf_userfunction(1680))
Would the following Query do the same job?
select * from vw_View
WHERE unitID = uf_userfunction(1680))
If so then all you have to do is to use a **FieldCompareExpressionPredicate **predicate, and pass a DBFunctionCall instance as the expression.
Please refer to the following sections in the LLBLGen Pro manual:
1- USing the generated code -> Adapter/SelfServicing -> Filtering and sorting -> The predicate system
2- Using the generated code -> Calling a database function