Best Way to Implement Search functionality?

Best Way to Implement Search functionality?

Old forum URL: forums.lhotka.net/forums/t/5342.aspx


ForteUnited posted on Thursday, September 04, 2008

I would like to get some input from the community on the best way to implement search functionality.

I have a business object based on BusinessBase called MedicalProvider which contains all the validation rules, auth rules, etc etc. I could build the search functionality into the MedicalProvider business object but am a bit concerned about the overhead associated with the BusinessBase object. This search functionality will only be used return a list of MedicalProviders for display (sorting and paging are necessary though), a user can then click on one these many items to load another page (web) to edit the item.

Would it be smarter to build a seperate MedicalProviderSearchResult object based on ReadOnlyBase and return a list of these objects based on the search criteria?

Thoughts?


Thanks,
CKA


RockfordLhotka replied on Thursday, September 04, 2008

Yes, absolutely! I discuss this in the book too, and this is why ProjectTracker has the ProjectList object, which is a ReadOnlyListBase subclass.

Copyright (c) Marimer LLC