Show / Hide Table of Contents

Provider Property (DbProviderFactory)

Gets a reference to the default configured DbProvider instance

Syntax

'Declaration
Public Shared Property Provider As DbProvider
public static DbProvider Provider {get; set;}

Property Value

A reference to the default configured DbProvider instance

Remarks

While the CreateProvider Method will return a new default provider instance, it creates a new one every time. It is more efficient to use the primary default provider instance. DbProvider implementations are required to be thread safe, so it is OK to use a single instance in this fashion.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server family

Reference

DbProviderFactory Class
DbProviderFactory Members

Back to top © 2022 Dovetail Software, Inc. - All rights reserved.
Clarify, Amdocs, and related products and names are copyright and trademark of Amdocs, Inc.
.NET, Visual Studio.NET, C#, Visual Basic and related products are trademark of Microsoft corporation.