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

See Also

Reference

ConnectionContext Class

Microsoft.Data.Schema.UnitTesting Namespace

DbProviderFactory