Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > LLBLGen Pro Runtime Framework> Derived Model DTO using QuerySpec
 

Pages: 1
LLBLGen Pro Runtime Framework
Derived Model DTO using QuerySpec
Page:1/1 

  Print all messages in this thread  
Poster Message
arschr
User



Location:
Atlanta, Georgia; USA
Joined on:
14-Dec-2003 16:57:29
Posted:
887 posts
# 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
Quote:

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?
- Al  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
38047 posts
# 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
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.