Summary


This chapter covered the design of Enterprise Library's Data Access Application Block and how to configure and develop an application to use it. It was very important to the Microsoft patterns & practices team that this application block remain very simple and straightforward to use for performing the most common database operations. It was also important that the block evolved to allow for a consistent interface regardless of the database that is being used by an application.

Database providers are at the core of the solution for this design and thus are a central part of this chapter. This chapter documented the general capabilities of each of the database providers that ship with Enterprise Library as well as specific differences that make one database provider different from another. It provided a sample database provider and detailed the steps that are needed to create a new database provider that extends the available data sources available to Enterprise Library's Data Access Application Block.

Like the other Enterprise Library application blocks, configuring the Data Access Application Block is more of an administrative detail than it is a development task. Still, since configuration information drives the behavior for this application block, it is important to know how database providers can be configured for an application. The chapter also discussed where and why the methods exposed by these database providers should be used, and how data access logic components should be used to control the database providers for a distributed application. This discussion highlighted the methods where a change to the configuration from one database provider to another would require some code changes. These methods are few, though, and typically changing the configuration for an application from one database provider to another can be done with little or no code changes.




Fenster Effective Use of Microsoft Enterprise Library(c) Building Blocks for Creating Enterprise Applications and Services 2006
Effective Use of Microsoft Enterprise Library: Building Blocks for Creating Enterprise Applications and Services
ISBN: 0321334213
EAN: 2147483647
Year: 2004
Pages: 103
Authors: Len Fenster

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net