Simple query question...

Posts   
 
    
ctadlock avatar
ctadlock
User
Posts: 60
Joined: 12-Feb-2004
# Posted on: 27-Aug-2004 21:50:25   

I have the entities...

Location LocationID, Name, OrganizationID, <other fields>

Organization OrganizationID, Name

Using the adapter model, how do I execute the query using the IRetrivalQuery interface...

select location.locationid from location where location.organizationid= @organizationID order by location.name

I would like returned from this query some object (DataTable, ...) that I can iterate over to get all the location IDs.

I know that I can grab this data using the normal FetchEntityCollection() functionality, I just dont want to return all the columns I dont need. Is this a candidate for a typed-list?

Thanks for the help, sorry for the simple question.

CT

jeffreygg
User
Posts: 805
Joined: 26-Oct-2003
# Posted on: 27-Aug-2004 23:08:42   

Yes, you should use a typed list in this instance.

Jeff...