ConnectionContext.Provider Property
Gets or sets a provider that is associated with the connection.
Namespace: Microsoft.Data.Schema.UnitTesting
Assembly: Microsoft.Data.Schema.UnitTesting (in Microsoft.Data.Schema.UnitTesting.dll)
Syntax
'Declaration
Public Property Provider As DbProviderFactory
public DbProviderFactory Provider { get; set; }
public:
property DbProviderFactory^ Provider {
DbProviderFactory^ get ();
void set (DbProviderFactory^ value);
}
member Provider : DbProviderFactory with get, set
function get Provider () : DbProviderFactory
function set Provider (value : DbProviderFactory)
Property Value
Type: System.Data.Common.DbProviderFactory
The factory provider for the current database schema model.
Remarks
Used to create a data adapter. The provider is used to create data objects (such as DbConnection and DbCommand) to manipulate the target database. By using tests and test conditions for these objects, you can target additional database platforms.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.