(I'm using the DSW for WCF Endpoint Services, so I don't know if this question is specific to that or is generic across all of the data services.)
Is there an known Search method to be used with the DataManager that gets generated from the DSW?
Here is what I would ideally want:
public List<T> SearchEntities<T>(int startIndex, int count, T searchParameters)
Essentially we provide the method with the start index/count for paging (if we want) and then we also provide an instance of the object that we're searching ("searchParameters"). This method would then iterate through all of the properties on the searchParameters object and if they're not equal to the default value, then it would filter by that. So imagine I had an object that looked like this:
It would be trivial for me to have a client application (in my case it would be my business tier) search through my people by various parameters. Finding all of the people in a business or all of the people in a business in a single state would be trivial. I realize complex search scenarios aren't handled by this but I would venture to say that this would cover HALF of all of my searches and seems like it should be doable with a single method that could be generated by the wizard. I'm working on writing this myself right now but if somebody else has this, it would be nice to see what they have.