Slide deck and example code from my cfmeetup presentation
Webshop1 demonstrates implicit services webshop2 demonstrates non implicit services
Note that normally you would use coldspring or some similar injection framework to do dependency injection
The database used was the adventureworks example database for sqlserver with one extra table named userDemo added.