Home > Patterns and Practices > Few more thoughts on the Enterprise Library

Few more thoughts on the Enterprise Library

When the Enterprise Library community extened the Application Blocks for more flexibility, they should have also done a couple of things. They should also given us the ability to short-circuit the configuration mechanism they use.
 
Database db = DatabaseFactory.CreateDatabase(..)
is somehing i wouln’t want if i just use SQL Server.
Wouldn’t it be nice if, I can also say
Database db = new SqlDatabase(…);
 
In other words, allow the user to choose the style.
 
Ya I know the former is more flexible, but if we do not need the flexibility why should we incur the performance overhead associated?
 
Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: