4.2, FetchEntity collection, db function call at one field

Posts   
 
    
miloszes
User
Posts: 222
Joined: 03-Apr-2007
# Posted on: 05-Jan-2015 14:38:16   

Hi,

lets assume, we have the following db table.

people{
first_name text;
...
}

Is it possible to apply the db function during the entity collection fetch? So in that scenario I would like to apply to_upper function on the first_name column. Of course in the real scenario its more complicated situation withe more complicated db_function. I know that I can use the ResultsetFields and project it into the PersonEntity, but i also want to have related prefetch path.

Best Regards, MiloszeS

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 06-Jan-2015 06:43:19   

Hi MiloszeS,

DBFunctionCall, as other expression objects are directly useful in DynamicLists/TypedLists/TypedViews. You cannot use them directly in pure entity fetches, but through projections, as you already pointed out.

David Elizondo | LLBLGen Support Team