ConnectionContext.Provider Property

 

Gets or sets a provider that is associated with the connection.

Namespace:   Microsoft.Data.Tools.Schema.Sql.UnitTesting
Assembly:  Microsoft.Data.Tools.Schema.Sql.UnitTesting (in Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll)

Syntax

public DbProviderFactory Provider { get; set; }
public:
property DbProviderFactory^ Provider {
    DbProviderFactory^ get();
    void set(DbProviderFactory^ value);
}
member Provider : DbProviderFactory with get, set
Public Property Provider As 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.

See Also

DbProviderFactory
ConnectionContext Class
Microsoft.Data.Tools.Schema.Sql.UnitTesting Namespace

Return to top