Ratnakar’s Weblog

Repository Factory for VS 2008

I have seen many people wanting to know the future state of the Repository Factory (formerly known as Data Access Guidance Package) – the news from Microsoft is that it will be retired and there won’t be any further releases. 

As you probably know the current version available on CodePlex isn’t VS 2008 compatible – so if you have moved on to using VS 2008 and are looking to use the repository factory further then write to me (leave a comment), I will flick you a copy. The version I have was tweaked and compiled for VS2008 and it uses Partial Classes etc so it is indeed better than the previous release!!!

Note:
There’s one issue with this version of the Repository Factory that I would like to highlight –
If you encounter an exception of type ‘System.Configuration.ConfigurationErrorsException’ it is because the code generated web.config entry for the repository interface will look like the following:

<add interfaceType=”CustomerMgmt.DataAccessLayer.ICustomerRepository, DataAccessLayer” repositoryType=”CustomerMgmt.DataAccessLayer.BusinessLayer.CustomerRepositoryArtifacts.CustomerRepository, DataAccessLayer”/>

instead, this is how it should have been:

<add interfaceType=”CustomerMgmt.DataAccessLayer.Interfaces.ICustomerRepository, DataAccessLayer” repositoryType=”CustomerMgmt.DataAccessLayer.BusinessLayer.CustomerRepositoryArtifacts.CustomerRepository, DataAccessLayer”/>

I will correct and repackage the project but for now modify the web.config mannually.

Note: This issue is now resolved in the new version of the package that I created.

Advertisements