Reputation:
I'm looking for a pattern for this general case:
"I need to get a subset of data based on directly related criteria and indirectly related data."
Upvotes: 0
Views: 253
Reputation: 83990
Martin Fowler and Eric Evans's Specification Pattern (pdf) (wikipedia) seems to fit your requirement.
Upvotes: 1