Download the Enterprise Library for .NET 2.0 here (January 2006).
The setup file is around 14 MB in size.
The double click the Enterprise Library January 2006.exe file and follow the steps as shown below in the screen shots.
Step 1: click on I accept and click next
Step 2: check the “Compile Enterprise Library” checkbox. This will actually compile the Enterprise Library application blocks after installing, so that it’s ready to use in your projects. If you don’t check this option then you have to manually compile the application blocks to use them.
Step 3: Select all the application blocks that you want to install.
Step 4: Click on Next
Step 5: Once the installation is complete you should be able to see the successfully installed message as shown below in screen shot.
Once the installation is complete you can find the Enterprise library in Start -> Program files -> Microsoft patterns and practices -> Enterprise Library – January 2006 as shown below in the screen shot.
The following are the application blocks available in Enterprise library for .net 2.0.
1. Caching Application Block
2. Cryptography Application Block
3. Data Access Application Block
4. Exception Handling Application Block
5. Logging Application Block
6. Security Application Block
After installing the EntLib (Enterprise Library) you should be able to see the following list of files under the installed folder. (Here I have installed the EntLib on the default path i.e. C:\Program Files). See screen shot below.
So now you have installed the Enterprise Library for .net 2.0 successfully on your machine.
So what’s new in EntLib for .NET 2.0?
- Configuration is now based on the System. Configuration namespace
- Logging Application Block uses the System. Diagnostics
- Introducing Object builder which does the necessary tasks for creating objects.
What has changed compared to previous version of EntLib?
- Configuration Application Block in previous version no longer exists.System.Configuration namespace provides the configuration functionality
- The EntLib would store all its configuration settings in the application configuration file i.e. App.config file rather than storing the configuration in application specific configuration files. So you can see less number of config files in EntLib 2.0.
E.g.: In the previous version of EntLib if you use the logging application block there would be an entry of logging application block in the application specific configuration file i.e. app.config ( or for web web.config) and a separate configuration file with the name of the application block like “loggingconfiguration.config” where as now all the application block specific details would be stored in the app.config (or web.config)
For some of the application blocks quickstarts to work like Data Access Application block quickstart you need to setup the database.
You need to have the SQL Express edition installed in your machine to work on the Data Access Quick starts.
The following are the steps to configure the database for quickstarts.
Step 1: under the QuickStart Application -> select Data Access Application Block -> click on “Setup QuickStart Database”.(as shown in screen shot)
Step 2: once you have clicked on the setup, you should see the screen similar to the below one.
Now the quick start for database application block is setup.
The above database scripts that you executed just now actually create “EntLibQuickStarts” database in your SQL Server Express Edition.
SQL Server Express Edition does not come with the UI tool like SQL server 200 Enterprise Manager which is easy to use and which you can use to see the list of databases you have created, users, roles etc. so you if you are looking for a similar tool for SQL Server Express Edition download the Microsoft SQL Server Management Studio Express (SSMSE) - Community Technology Preview (CTP) November 2005
From here. The setup file is around 30 MB in size.
After you have installed the SQL server management studio successfully, you can open the SSMSE by click on Start -> Program Files -> Microsoft SQL server 2005 -> SQL server Management Studio Express CTP.
After you click on the SSMSE you are asked to enter the credentials as shown below.
Under Server Name enter your machine name followed by the SQL server instance name.
By default the instance name will be SQLEXPRESS.
Server name eg: localhost\SQLEXPRESS
And under Authentication select Windows Authentication. Click on connect.
After connecting SSMSE would look something like this.
In my next blog entry i would be explaining more in detail about how to use it in your projects with just few steps.