ConnectionContext.Connection Property
Gets or sets the database connection.
Namespace: Microsoft.Data.Schema.UnitTesting
Assembly: Microsoft.Data.Schema.UnitTesting (in Microsoft.Data.Schema.UnitTesting.dll)
Syntax
'Declaration
Public Property Connection As DbConnection
public DbConnection Connection { get; set; }
public:
property DbConnection^ Connection {
DbConnection^ get ();
void set (DbConnection^ value);
}
member Connection : DbConnection with get, set
function get Connection () : DbConnection
function set Connection (value : DbConnection)
Property Value
Type: System.Data.Common.DbConnection
The current connection.
Remarks
This database connection is used to execute the Transact-SQL statements.
.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.