The Enterprise Library has been available for quite a while now since January 2005 and a lot of people have been looking at it. It was developed based on Avanade's ACA.NET - kinda boombastique stuff I must say. Recently, there has been a lot of talk about it in the SGDOTNET forums, and since I'm curious about it; and since I have installed it for months and have not looked at it; and since the current system in my office is using an old version of the DAAB that is part of it now; and since I wanted to learn something new ...
I've decided to study it in detail today. My first focus was the Data Access Application Block (DAAB) since I'm more familiar with data-related stuff. I must say that it is quite well-written but I was expecting more than just wrapper methods. Nevertheless, it still can be very useful for application development. It piggy-backs on the Configuration Application Block for managing the information in .config files. Specifying configuration information is easy by using the available Configuration tool.
I read the whole documentation of the DAAB, studied some of it's source codes and looked at the quickstart examples. Then I did some practical:
Database db = DatabaseFactory.CreateDatabase("LocalServer");
DBCommandWrapper dbw = db.GetSqlStringCommandWrapper("SELECT * FROM Categories");
DataSet ds = db.ExecuteDataset(dbw);
dataGrid1.DataSource = ds;
That is all to it and the code works. However, I find the execution a little slow. I then compared it against Paladin:
CategoriesList catList = new CategoriesList();
BusinessComponent bc = new BusinessComponent();
bc.Populate(catList);
dataGrid1.DataSource = catList;
To my surprise, Paladin runs faster. But anyway, I heard they will release a more optimized version sometime this month and hopefully, it will perform better.
The other tasks such as insertion, updating and deletion will require quite substantial amount of coding. But it is understandable since it is only providing convenient wrapper methods and not OPF capabilities. The Data Mapping Application Block that is currently in the planning stage should be more OPF-like and more interesting.
I guessed I will be looking at the Caching Application Block next.
Popular Post
-
I'm a sexy mix between the The Multi-tasker and the All-the-Timer/Compulsive/Voracious/Anything Goes Reader. What are you? What Kind ...
-
Nigerian Armoured Vehicle A Nigerian made armoured car was on Thursday launched by President in this month of August 2009 at the eagle squar...
-
Biodiesel supercar is Brit first British firm Trident has broken the supercar mould with its new Iceni, by marrying stunning performance wi...
-
Because out of it comes gems like these. Mrs. Dalloway by Virginia Woolf “The only good thing to say about this 'literary' drivel i...
-
Most people would secretly like to believe that there's a little Superman hiding inside us. Take this driver, for example, who tried to ...
-
Alfa Romeo is expanding its MiTo and Giulietta offerings in Britain with the addition of a new trim grade named "Sportiva". In t...
-
The South African built Revo is a perfect example of true innovation at it's finest. It was built by, Achim Bergmann of Thompson Racing,...
-
Hi guys... it;s summer, time and im in germany, just in the finnal days of my Internship at EDAG.. Im very impressed with my overall improv...
-
Kelly Lyles in her Excessories Odd-Yssey Art Car - Photo by John Lok Well known flamboyant artist Kelly Lyles who is known for...
-
With the 2012 Moscow Motor Show (August 31 to September 9 for the public) just around the corner, Mazda has released a full set of photos a...
No comments:
Post a Comment