Hmm Microsoft Enterprise Library sounds really some thing out of the box invention by Microsoft but being honest this library is just a normal Library no rocket science and extra ordinary stuff behind. Interesting part is that it is Microsoft is not delivering support for the enterprise library because it is created by some developers which might be purchased by Microsoft later on (habit of Microsoft). Anyway lets come out of the Microsoft controversy and let me tell you the six blocks of enterprise library.
Please not that this article is based on theory, in which I am trying to tell you what I have about the introduction of enterprise library. If you are looking for enterprise library code, then you might be wasting your time, it would be better for you to have full view of my asp.net 2.0 Articles.
Let’s have a look at the blocks which enterprise library is supporting
- Data Access
- Logging
- Exception Handling
- Security
- Cryptography
- Caching
Let’s discuss all bold above respectively.
Data Access:
Just like the previous classes such as SQL Helper, DAL etc. but believe me a way strong. It helps you in completing the day to day database transaction easily and enables application to access multiple databases with transparency. You cal easily call stored procedure and other command objects from just online line of code. Connection string can be defined in both code (.VB) and in web.config files.
Logging:
Initially when I was reading logging block, I was expecting that it is more like Asp.net Roles 2.0. But it is quit change. Logging block empower an application to have a customer login functionality which keep track of when does a customer login , how many fail attempts to the authentication credential has been made. And save all this information somewhere locally.
Exception:
This block will give you the facility of catching any expected error without messing the application. The beauty of this block is it gives many ways to come out of an error, as well as provide Exception Logging functionality and you can also define your own exception conditions with the help of Exception Policies.
CONT………………………