mike wrote:
Thanks, that answers my questions. Would you have any suggestions as to how to implement this type of search for the moment? Perhaps throwing the results into a datagrid and trying to do searches that way using c# functions or perhaps subclassing one of your classes and adding our own search function?
If you need it now, you could overload Add() in the collection class, add a hashtable to the collection class (be sure to serialize it) and when Add() or Insert() is called, add the entity to the hashtable with its PK values. (separate multi-pk values with some separator). Then add a Find(pkvalue1,... pkvalueN) method which takes the pk values, and uses the hashtable to retrieve the entity.
Be sure to clear the hashtable when a getmulti* is executed, since those methods clear the contents.
In November I'll add this to the collection class templates.
I don't know what you want to do with the data you find as a result of the search. If it doesn't matter if the data is in an entity object or not, you could execute the GetMultiAsDataTable() method when retrieving the entity objects, and use that datatable with a dataview to search for rows and use that data.
However, I'd go back to the database.