O'Reilly logo

Effective Use of Microsoft Enterprise Library: Building Blocks for Creating Enterprise Applications and Services by Len Fenster

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required