Just a general quick question regarding search expressions:
I am creating some helper functions to make the expression clearer, since seems it works for TLinq:
result := OManager.Find<TEntityPais>.Where(EqNoCase('nome', AParam) and EqDominio).Take(1).UniqueResult;
that EqNoCase is based on what you said about the nocase:
function TNaharModel.EqNoCase(AField: string; AValue: Variant): TLinqExpression;
begin
result := TLinq.Sql<string>('Upper({'+AField+'}) = Upper(?)', AValue);
end;
I tested and worked, however I don't know if that is ok for Aurelius. For what I saw in the source code seems good, however I have no conditions to good deep.
Can I create TLiq helper functions like that and use when construction my where clause?
Thanks again