The Repository Factory has been released from Microsoft Patterns & Practices, which provides some nice code generation benefits for generating business entities, stored procedures, and a data access layer for you winform and web applications.
The source code released is changset 10107, which is the same changeset used in the following Repository Factory Screencasts:
You can download the Repository Factory release here.