Derived Model DTO using QuerySpec

Posts   
 
    
arschr
User
Posts: 893
Joined: 14-Dec-2003
# Posted on: 25-Mar-2019 21:45:40   

I've also just started experimenting with derived models.

In the 5.5 Derived Model Support documentation

Fetching DTO instances To fetch DTO instances, the projection methods are used to append a projection to a Linq query formulated in an IQueryable<T>. Below an example is given of using these projection methods, by fetching a set of Customer DTO class instances projected from a set of Customer entity instances, using a Linq query. The Customer DTO class instantiated is given in the Generated DTO class structure section.

Does this mean that if I am using QuerySpec I have to do an In-Memory projection? Or did I miss the QuerySpec section of the documentation?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39590
Joined: 17-Aug-2003
# Posted on: 26-Mar-2019 08:43:05   

QuerySpec isn't a supported query language for the derived models at this point, so you didn't miss anything in the docs. We do plan to add it tho, but at the moment it's not available and indeed the only options are: use Linq or do the projection manually (use one of the typed projection methods offered by queryspec to make life a little easier: https://www.llblgen.com/Documentation/5.5/LLBLGen%20Pro%20RTF/Using%20the%20generated%20code/QuerySpec/gencode_queryspec_projections.htm#easily-create-typed-projections)

Frans Bouma | Lead developer LLBLGen Pro