Repository Factory - Nice Improvements to the Data Access Guidance Package

Repository Factory - Nice Improvements to the Data Access Guidance Package

by David Hayden ( Microsoft MVP C# ), Filed: Code Generation

 

I had some time this weekend to take a quick peek at the Repository Factory, which is a new guidance package from the Microsoft Patterns & Practices Team that replaces the Data Access Guidance Package. I talked about the Data Access Guidance Package in the following screencast:

Create Data Access Layer Using Data Access Guidance Package Screencast

Anyway, the team has already created a number of new improvements and features that were really exciting to play with this weekend:

  • Improved Mapping of Stored Procedure Parameters to Entity Properties
  • Generates an Interface for each Repository Class
  • Generates a RepositoryFactory Class for Retrieving Individual Repositories
  • Repositories Registered via Configuration Section in App.config / Web.config
  • Common and Base Repository Classes in Separate Repository Assembly

Very, very cool. You can see some code samples and photos over on PnPGuidance:

Repository Factory - New and Improved Data Access Guidance Package

Well worth using over the old Data Access Guidance Package starting now for that data access layer code generation!

 

posted on Sunday, August 19, 2007 7:56 PM

Main

News

Green Tea

.NET Development

Enterprise Library

Patterns & Practices