Our current repository is where all of our queries reside ... i.e. FetchOrders(), FetchOrdersWithLineItems(), FetchOrdersForDate(date), etc. This makes it easy to mock the repository, but also creates a whole bunch of pass-through methods in the service layer (i.e. servicelayer.FetchOrdersForDate(date) returns repository.FetchOrdersForDate(date)). – Jess Dec 19 '09 at 17:47 | |||
| That's cool, but you might want to consider methods in the repository e.g. Fetch |
Sunday, April 15, 2012
On Passthru's
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment