B. Creating a .NET Managed Data Provider

Chapter 3 DESCRIBED how to use database providers and demonstrated how to create a new one. A prerequisite for creating a database provider is the existence of a .NET managed data provider that provides an implementation for the interfaces that need to be returned for the virtual methods defined in the abstract Database base class. For example, the SqlDatabase class derives from the Database class and must return a class that implements the IDataReader for the virtual ExecuteReader method. It accomplishes this by using the SqlCommand and SqlDataReader classes that are provided by the .NET managed data provider for Microsoft SQL Server.

Listings 3-4 and 3-5 (in Chapter 3 ) provided examples for some of ...

Get Effective Use of Microsoft Enterprise Library: Building Blocks for Creating Enterprise Applications and Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.