View Single Post
11-02-2010, 09:45 AM
Join Date: Nov 2007
Location: France, near Paris
I would have done the same as Tony.
A class with methods "Query", "Where", "Limit", etc... + a property "Results" pointing on a private collection storing the results of the query.
The method "Query" puts the results of the query in the private collection and then, the methods "Where" and "Limit" make the limitations in the collection.
The bad thing in that is that it can returns a lot of unnecessary data but for the case you don't want to apply a "where" clause after the "Query", it's ok.
Wedus project's Website
View Public Profile
Send a private message to Gibou
Visit Gibou's homepage!
Find More Posts by Gibou