Sunday, October 16, 2011

Microsoft Enterprise Library 5.0 for data access

I always prefer to use Microsoft Enterprise Library rather than classic ado.net approach. Now the latest version of Microsoft Enterprise Library is 5.0. For previous versions you can check this article.
In the very first step you have to download Microsoft Enterprise Library 5.0 from the Microsoft site. Then install the .msi file. After that you will get all the dlls from the installation directory. I am here only describing how to use Microsoft Enterprise Library for data access.
You will need the below dlls:
Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices.EnterpriseLibrary.Configuration.Design.dll
Microsoft.Practices.EnterpriseLibrary.Configuration.DesignTime.dll
Microsoft.Practices.EnterpriseLibrary.Data.dll
Microsoft.Practices.EnterpriseLibrary.Data.SqlCe.dll
Microsoft.Practices.ServiceLocation.dll
Microsoft.Practices.Unity.dll
Microsoft.Practices.Unity.Interception.dll
You have to give all the references for the above dlls in the Bin folder. Then follow from Step 3 onwards from this URL.

No comments:

Post a Comment