Select Distinct

Posts   
 
    
sEdwards
User
Posts: 1
Joined: 03-Apr-2007
# Posted on: 03-Apr-2007 20:36:31   

does LLBLGen support "Select Distinct"? If so, what is the syntex?

Thanks

jmeckley
User
Posts: 403
Joined: 05-Jul-2006
# Posted on: 03-Apr-2007 22:45:08   

select distinct is used with TypedLists and Projections. I cannot be used with Entities (not sure about EntityViews).

with adapter you call DataAccessAdapter.FetchTypedList(...); using the overloads you can specifiy allowDuplicates. False = Distinct, True = Dups.

The Self Servicing syntax would be similar, but I don't know the exact function name.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 04-Apr-2007 10:52:27   

For entities: distinct is emitted when necessary / possible when fetching entities. So, you don't have to worry about that, you never get duplicates back.

Frans Bouma | Lead developer LLBLGen Pro