ConnectionContext.Provider Property
Gets or sets a provider that is associated with the connection.
Namespace: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting
Assembly: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting (in Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.dll)
Syntax
'Declaration
Public Property Provider As DbProviderFactory
'Usage
Dim instance As ConnectionContext
Dim value As DbProviderFactory
value = instance.Provider
instance.Provider = value
public DbProviderFactory Provider { get; set; }
public:
property DbProviderFactory^ Provider {
DbProviderFactory^ get ();
void set (DbProviderFactory^ value);
}
public function get Provider () : DbProviderFactory
public function set Provider (value : DbProviderFactory)
Property Value
Type: System.Data.Common.DbProviderFactory
Remarks
Used to create a data adapter. The provider is used to create System.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.
Permissions
- 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.
See Also
Reference
Microsoft.VisualStudio.TeamSystem.Data.UnitTesting Namespace