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