THESE FORUMS ARE NOW FROZEN
Please choose "Forums" from the Main menu of www.entityspaces.net to get to our new forums.

Reusing the same query object

rated by 0 users
This post has 1 Reply | 1 Follower

Not Ranked
Posts 3
daokfella Posted: 11-17-2009 10:24 AM

I have a query object comprised of many joins and where conditions. I'd like to load this query more than once with different resultsets for each load. The problem is that Select() always appends the fields. Is there a way to clear the select list of a query so I can load it again and get only the fields I need each time?

Top 10 Contributor
Posts 3,881

There is no way to do this. Your best bet is to make a method that returns a new query with everything but the Select clause applied, then you can add whatever columns you need and load it.

EntitySpaces | Twitter | BLOG | Please honor our Software License

Page 1 of 1 (2 items) | RSS
Copyright © 2005 - 2009, EntitySpaces, LLC